summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-09-26 18:58:34 +0000
committerGerald Carter <jerry@samba.org>2002-09-26 18:58:34 +0000
commit7d1eb6f7b62300e2f0a84f045f5885118c6ffa1b (patch)
tree6f0f3f1ecab8d578cbac25705ec880f3b76c3f4a /source3/lib
parentef6f8197a3071996591f74f6d7b9d36dbcb19dc7 (diff)
downloadsamba-7d1eb6f7b62300e2f0a84f045f5885118c6ffa1b.tar.gz
samba-7d1eb6f7b62300e2f0a84f045f5885118c6ffa1b.tar.bz2
samba-7d1eb6f7b62300e2f0a84f045f5885118c6ffa1b.zip
sync with HEAD
(This used to be commit ee9cbf58071adb627a49a94c6340aaba330486b5)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/time.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/source3/lib/time.c b/source3/lib/time.c
index ef12dc15f3..5da63910d9 100644
--- a/source3/lib/time.c
+++ b/source3/lib/time.c
@@ -1,8 +1,8 @@
/*
Unix SMB/CIFS implementation.
time handling functions
- Copyright (C) Andrew Tridgell 1992-1998
-
+ Copyright (C) Andrew Tridgell 1992-1998
+ Copyright (C) Stefan (metze) Metzmacher 2002
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
@@ -748,3 +748,13 @@ void init_nt_time(NTTIME *nt)
nt->high = 0x7FFFFFFF;
nt->low = 0xFFFFFFFF;
}
+
+/****************************************************************************
+check if NTTIME is 0
+****************************************************************************/
+BOOL nt_time_is_zero(NTTIME *nt)
+{
+ if(nt->high==0)
+ return True;
+ return False;
+}