diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/filelock.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/filelock.c b/src/filelock.c index d36245971e3..c478233d7e1 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -461,31 +461,6 @@ t if it is locked by you, else a string of the name of the locker.") | |||
| 461 | 461 | ||
| 462 | /* Initialization functions. */ | 462 | /* Initialization functions. */ |
| 463 | 463 | ||
| 464 | init_filelock () | ||
| 465 | { | ||
| 466 | #if 0 | ||
| 467 | char *new_name; | ||
| 468 | |||
| 469 | lock_dir = egetenv ("EMACSLOCKDIR"); | ||
| 470 | if (! lock_dir) | ||
| 471 | lock_dir = PATH_LOCK; | ||
| 472 | |||
| 473 | /* Copy the name in case egetenv got it from a Lisp string. */ | ||
| 474 | new_name = (char *) xmalloc (strlen (lock_dir) + 2); | ||
| 475 | strcpy (new_name, lock_dir); | ||
| 476 | lock_dir = new_name; | ||
| 477 | |||
| 478 | /* Make sure it ends with a slash. */ | ||
| 479 | if (lock_dir[strlen (lock_dir) - 1] != '/') | ||
| 480 | strcat (lock_dir, "/"); | ||
| 481 | |||
| 482 | superlock_file = (char *) xmalloc ((strlen (lock_dir) | ||
| 483 | + sizeof (SUPERLOCK_NAME))); | ||
| 484 | strcpy (superlock_file, lock_dir); | ||
| 485 | strcat (superlock_file, SUPERLOCK_NAME); | ||
| 486 | #endif | ||
| 487 | } | ||
| 488 | |||
| 489 | syms_of_filelock () | 464 | syms_of_filelock () |
| 490 | { | 465 | { |
| 491 | defsubr (&Sunlock_buffer); | 466 | defsubr (&Sunlock_buffer); |