From 03d78a21befef9074bd85bba98968e9c25e022af Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 14 Mar 2011 18:16:59 -0700 Subject: [PATCH] * filelock.c (within_one_second): Now static. --- src/ChangeLog | 2 ++ src/filelock.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index fae7e8a29c9..25935defc9b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-03-15 Paul Eggert + * filelock.c (within_one_second): Now static. + * buffer.c (fix_overlays_before): Mark locals as initialized. (fix_start_end_in_overlays): Likewise. This function should be 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) /* Return 1 if times A and B are no more than one second apart. */ -int +static int within_one_second (time_t a, time_t b) { return (a - b >= -1 && a - b <= 1); -- 2.39.5