s3: Use SBVAL in put_long_date_timespec
authorVolker Lendecke <vl@samba.org>
Tue, 18 Sep 2012 21:35:39 +0000 (14:35 -0700)
committerVolker Lendecke <vl@samba.org>
Tue, 18 Sep 2012 23:16:25 +0000 (01:16 +0200)
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Sep 19 01:16:25 CEST 2012 on sn-devel-104

source3/lib/time.c

index 00cf0f16c1f1daa0453d3cf641e4680f08754564..b4b9d19dc93d0185306d9701ebfd1a393d97914e 100644 (file)
@@ -173,8 +173,7 @@ void put_long_date_timespec(enum timestamp_set_resolution res, char *p, struct t
        NTTIME nt;
        round_timespec(res, &ts);
        unix_timespec_to_nt_time(&nt, ts);
-       SIVAL(p, 0, nt & 0xFFFFFFFF);
-       SIVAL(p, 4, nt >> 32);
+       SBVAL(p, 0, nt);
 }
 
 void put_long_date(char *p, time_t t)