diff options
| author | Paul Eggert | 2011-03-14 18:16:59 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-03-14 18:16:59 -0700 |
| commit | 03d78a21befef9074bd85bba98968e9c25e022af (patch) | |
| tree | 780fcd5ed1f266c3a779838b84f5d5dbba67282f /src | |
| parent | 5df8f01bab8c0bbc3391f41c54138d0a18973424 (diff) | |
| download | emacs-03d78a21befef9074bd85bba98968e9c25e022af.tar.gz emacs-03d78a21befef9074bd85bba98968e9c25e022af.zip | |
* filelock.c (within_one_second): Now static.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/filelock.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index fae7e8a29c9..25935defc9b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2011-03-15 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-03-15 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * filelock.c (within_one_second): Now static. | ||
| 4 | |||
| 3 | * buffer.c (fix_overlays_before): Mark locals as initialized. | 5 | * buffer.c (fix_overlays_before): Mark locals as initialized. |
| 4 | (fix_start_end_in_overlays): Likewise. This function should be | 6 | (fix_start_end_in_overlays): Likewise. This function should be |
| 5 | simplified by using pointers-to-pointers, but that's a different | 7 | simplified by using pointers-to-pointers, but that's a different |
diff --git a/src/filelock.c b/src/filelock.c index 7f8f0e1c0fb..0e4cee3c844 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -382,7 +382,7 @@ lock_file_1 (char *lfname, int force) | |||
| 382 | 382 | ||
| 383 | /* Return 1 if times A and B are no more than one second apart. */ | 383 | /* Return 1 if times A and B are no more than one second apart. */ |
| 384 | 384 | ||
| 385 | int | 385 | static int |
| 386 | within_one_second (time_t a, time_t b) | 386 | within_one_second (time_t a, time_t b) |
| 387 | { | 387 | { |
| 388 | return (a - b >= -1 && a - b <= 1); | 388 | return (a - b >= -1 && a - b <= 1); |