]> err.no Git - util-linux/commit
login: fix compiler warning (int32 time() arg)
authorKarel Zak <kzak@redhat.com>
Mon, 29 Sep 2008 10:53:39 +0000 (12:53 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 12 Dec 2008 11:56:28 +0000 (12:56 +0100)
commit376314832f0722b5b8df199eebc698c03bde30b9
treef3adfe393dbb3696c54679377562945d5113f643
parentd63e54e6c3aa9acb3015525d22e1d1b19ab4315c
login: fix compiler warning (int32 time() arg)

login.c: In function ‘dolastlog’:
login.c:1438  warning: passing argument 1 of ‘time’ from incompatible pointer type

Unfortunately, on-disk lastlog format is always 32bit, bits/utmp.h:

  struct lastlog
  {
  #if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32
     int32_t ll_time;
  #else
     __time_t ll_time;
  #endif

Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/login.c