Merge from TNG - function to initialise NTTIME structure.
authorTim Potter <tpot@samba.org>
Tue, 28 Aug 2001 06:02:18 +0000 (06:02 +0000)
committerTim Potter <tpot@samba.org>
Tue, 28 Aug 2001 06:02:18 +0000 (06:02 +0000)
(This used to be commit 14bc8283f26fb80633575e471de4a15a492113c6)

source3/lib/time.c

index 12643b0522434d8cf0ff76d311a05a5eb060d42b..88be3fa334384261b85f3603afb73807070aa11a 100644 (file)
@@ -596,3 +596,12 @@ time_t get_create_time(SMB_STRUCT_STAT *st,BOOL fake_dirs)
   return ret;
 }
 
+/****************************************************************************
+initialise an NTTIME to -1, which means "unknown" or "don't expire"
+****************************************************************************/
+
+void init_nt_time(NTTIME *nt)
+{
+       nt->high = 0x7FFFFFFF;
+       nt->low = 0xFFFFFFFF;
+}