summaryrefslogtreecommitdiffstats
path: root/lib/timeutils.c
diff options
context:
space:
mode:
authorKarel Zak2016-05-23 11:56:31 +0200
committerKarel Zak2016-05-23 11:56:31 +0200
commit01b47d46d76291ea338ecd5190e1e670f4ab890a (patch)
tree4b45bc12e4ba7514aad847638a1b32a9a7a2ab0a /lib/timeutils.c
parentsulogin: agetty: use the plymouth local protocol instead the plymouth binary (diff)
downloadkernel-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.c4
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);
}