summaryrefslogtreecommitdiff
path: root/filedef.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2000-07-07 17:34:56 +0000
committerPaul Smith <psmith@gnu.org>2000-07-07 17:34:56 +0000
commit3c132f10f39f1675607d50f5c75669ec64e13bb5 (patch)
tree6a749a7c51472ff1f41aaa1cb6eb3a2dcaac9f70 /filedef.h
parent88187d9f4b963227e72a46848826eab93545da6e (diff)
downloadgunmake-3c132f10f39f1675607d50f5c75669ec64e13bb5.tar.gz
* Minor code cleanups
* Fix for PR/1811, from Paul Eggert.
Diffstat (limited to 'filedef.h')
-rw-r--r--filedef.h6
1 files changed, 3 insertions, 3 deletions
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.