diff options
| author | Mattias Andrée <maandree@operamail.com> | 2014-10-29 21:02:44 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2014-10-29 21:02:44 +0100 |
| commit | ab5184c275a05a6e6db6c95d4055b416fda4061c (patch) | |
| tree | 2d5dbf63a6f7d029fac720833f730bc0e5f8ae71 /src/log-login-utmp.c | |
| parent | add deps (diff) | |
| download | cerberus-logging-ab5184c275a05a6e6db6c95d4055b416fda4061c.tar.gz cerberus-logging-ab5184c275a05a6e6db6c95d4055b416fda4061c.tar.bz2 cerberus-logging-ab5184c275a05a6e6db6c95d4055b416fda4061c.tar.xz | |
fix warnings
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/log-login-utmp.c')
| -rw-r--r-- | src/log-login-utmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/log-login-utmp.c b/src/log-login-utmp.c index 1325bed..ed52a80 100644 --- a/src/log-login-utmp.c +++ b/src/log-login-utmp.c @@ -72,8 +72,8 @@ int do_log(void) { struct timeval tv; gettimeofday(&tv, NULL); - ut.ut_tv.tv_sec = tv.tv_sec; - ut.ut_tv.tv_usec = tv.tv_usec; + ut.ut_tv.tv_sec = (typeof(ut.ut_tv.tv_sec))(tv.tv_sec); + ut.ut_tv.tv_usec = (typeof(ut.ut_tv.tv_usec))(tv.tv_usec); } #else { |
