From 82901df5e31b1e83761a90cf717717213fda1197 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 28 Aug 2001 06:02:18 +0000 Subject: Merge from TNG - function to initialise NTTIME structure. (This used to be commit 14bc8283f26fb80633575e471de4a15a492113c6) --- source3/lib/time.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source3/lib') 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; +} -- cgit