diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2010-04-22 00:43:29 +0200 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2010-04-22 00:43:29 +0200 |
commit | 369399629764ba06d598d04d94abc3e9a9ad729d (patch) | |
tree | bd9b3af137d02bad6c9e2860570ddbd223081316 /src/util.h | |
parent | 68e9980cceac4ac2a1778f7c78f88ea04b05dcf1 (diff) | |
download | patch-369399629764ba06d598d04d94abc3e9a9ad729d.tar.gz |
Use struct timespec instead of time_t internally
* src/pch.h (pch_timestamp): Return timestamp as struct timespec
instead of time_t.
* src/pch.c: Use struct timespec instead of time_t. A tv_sec value
of -1 indicates "no timestamp".
* src/util.h (fetchname): Return timestamp as struct timespec
instead of time_t.
* src/util.c (fetchname): str2time() does not give us nanoseconds; set
them to zero for now.
* src/patch.c (main): Only use the seconds in timestamps for now.
* bootstrap.conf: Add the time module for getting struct timespec
declared on old hosts.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -48,7 +48,7 @@ void fatal (char const *, ...) void pfatal (char const *, ...) __attribute__ ((noreturn, format (printf, 1, 2))); -char *fetchname (char *, int, char **, time_t *); +char *fetchname (char *, int, char **, struct timespec *); char *savebuf (char const *, size_t); char *savestr (char const *); char const *version_controller (char const *, bool, struct stat const *, char **, char **); |