diff options
author | Karel Zak | 2016-05-23 11:56:31 +0200 |
---|---|---|
committer | Karel Zak | 2016-05-23 11:56:31 +0200 |
commit | 01b47d46d76291ea338ecd5190e1e670f4ab890a (patch) | |
tree | 4b45bc12e4ba7514aad847638a1b32a9a7a2ab0a /lib/timeutils.c | |
parent | sulogin: agetty: use the plymouth local protocol instead the plymouth binary (diff) | |
download | kernel-qcow2-util-linux-01b47d46d76291ea338ecd5190e1e670f4ab890a.tar.gz kernel-qcow2-util-linux-01b47d46d76291ea338ecd5190e1e670f4ab890a.tar.xz kernel-qcow2-util-linux-01b47d46d76291ea338ecd5190e1e670f4ab890a.zip |
include/timeutils: use pointer for time_t
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/timeutils.c')
-rw-r--r-- | lib/timeutils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/timeutils.c b/lib/timeutils.c index c291043ed..bdc00d337 100644 --- a/lib/timeutils.c +++ b/lib/timeutils.c @@ -376,9 +376,9 @@ char *strtm_iso(struct tm *tm, int flags) return format_iso_time(tm, 0, flags); } -char *strtime_iso(time_t t, int flags) +char *strtime_iso(const time_t *t, int flags) { - struct tm tm = *localtime(&t); + struct tm tm = *localtime(t); return format_iso_time(&tm, 0, flags); } |