]> 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>
Mon, 29 Sep 2008 11:08:06 +0000 (13:08 +0200)
commita063e16c5d5b9307cb0e027686998677877b1fe9
tree59f688865a807673e474f7d78ee0b62aa71e901e
parent293889d084c4524930f44785dad8cae4f1be060b
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