summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2010-04-22 00:43:29 +0200
committerAndreas Gruenbacher <agruen@suse.de>2010-04-22 00:43:29 +0200
commit369399629764ba06d598d04d94abc3e9a9ad729d (patch)
treebd9b3af137d02bad6c9e2860570ddbd223081316 /src/util.h
parent68e9980cceac4ac2a1778f7c78f88ea04b05dcf1 (diff)
downloadpatch-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 875dbe4..128f5ff 100644
--- a/src/util.h
+++ b/src/util.h
@@ -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 **);