summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-08-28 06:02:18 +0000
committerTim Potter <tpot@samba.org>2001-08-28 06:02:18 +0000
commit82901df5e31b1e83761a90cf717717213fda1197 (patch)
tree47fa60e01f64179893b605c5ef3bedd9c40f151e /source3
parente766812ee0ec29493123d999ce337c13bde042d2 (diff)
downloadsamba-82901df5e31b1e83761a90cf717717213fda1197.tar.gz
samba-82901df5e31b1e83761a90cf717717213fda1197.tar.bz2
samba-82901df5e31b1e83761a90cf717717213fda1197.zip
Merge from TNG - function to initialise NTTIME structure.
(This used to be commit 14bc8283f26fb80633575e471de4a15a492113c6)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/time.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/lib/time.c b/source3/lib/time.c
index 12643b0522..88be3fa334 100644
--- a/source3/lib/time.c
+++ b/source3/lib/time.c
@@ -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;
+}