From 3c132f10f39f1675607d50f5c75669ec64e13bb5 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Fri, 7 Jul 2000 17:34:56 +0000 Subject: * Minor code cleanups * Fix for PR/1811, from Paul Eggert. --- filedef.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'filedef.h') diff --git a/filedef.h b/filedef.h index 68c72de..19f24f8 100644 --- a/filedef.h +++ b/filedef.h @@ -131,8 +131,8 @@ extern void notice_finished_file PARAMS ((struct file *file)); #define FILE_TIMESTAMP_S(ts) (((ts) - ORDINARY_MTIME_MIN) \ >> FILE_TIMESTAMP_LO_BITS) -#define FILE_TIMESTAMP_NS(ts) (((ts) - ORDINARY_MTIME_MIN) \ - & ((1 << FILE_TIMESTAMP_LO_BITS) - 1)) +#define FILE_TIMESTAMP_NS(ts) ((int) (((ts) - ORDINARY_MTIME_MIN) \ + & ((1 << FILE_TIMESTAMP_LO_BITS) - 1))) /* Upper bound on length of string "YYYY-MM-DD HH:MM:SS.NNNNNNNNN" representing a file timestamp. The upper bound is not necessarily 19, @@ -154,7 +154,7 @@ extern void notice_finished_file PARAMS ((struct file *file)); extern FILE_TIMESTAMP file_timestamp_cons PARAMS ((char const *, time_t, int)); -extern FILE_TIMESTAMP file_timestamp_now PARAMS ((void)); +extern FILE_TIMESTAMP file_timestamp_now PARAMS ((int *)); extern void file_timestamp_sprintf PARAMS ((char *p, FILE_TIMESTAMP ts)); /* Return the mtime of file F (a struct file *), caching it. -- cgit v1.2.3