summaryrefslogtreecommitdiff
path: root/source4/lib/util
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-09 14:24:24 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-09 14:24:24 +0100
commit3525f77e56966d688a11e3f4520e9cd799fd4f23 (patch)
treead9f3835f6bcbad194553f1d6178a980ae2eac08 /source4/lib/util
parent4932e4bb7ad11c6ef8ad3187063dba4e7481afa7 (diff)
downloadsamba-3525f77e56966d688a11e3f4520e9cd799fd4f23.tar.gz
samba-3525f77e56966d688a11e3f4520e9cd799fd4f23.tar.bz2
samba-3525f77e56966d688a11e3f4520e9cd799fd4f23.zip
Move nt_time_equal() to libutil.
(This used to be commit 9705263a6c58d4ade556d17db2009dbb85291b22)
Diffstat (limited to 'source4/lib/util')
-rw-r--r--source4/lib/util/time.c8
-rw-r--r--source4/lib/util/time.h5
2 files changed, 12 insertions, 1 deletions
diff --git a/source4/lib/util/time.c b/source4/lib/util/time.c
index fc51498009..a181885806 100644
--- a/source4/lib/util/time.c
+++ b/source4/lib/util/time.c
@@ -612,3 +612,11 @@ _PUBLIC_ int get_time_zone(time_t t)
return 0;
return tm_diff(&tm_utc,tm);
}
+
+/**
+ check if 2 NTTIMEs are equal.
+*/
+bool nt_time_equal(NTTIME *t1, NTTIME *t2)
+{
+ return *t1 == *t2;
+}
diff --git a/source4/lib/util/time.h b/source4/lib/util/time.h
index 557c5d4eab..1ab976ca78 100644
--- a/source4/lib/util/time.h
+++ b/source4/lib/util/time.h
@@ -224,6 +224,9 @@ _PUBLIC_ void nttime_to_timeval(struct timeval *tv, NTTIME t);
*/
_PUBLIC_ int get_time_zone(time_t t);
-
+/**
+ check if 2 NTTIMEs are equal.
+*/
+bool nt_time_equal(NTTIME *t1, NTTIME *t2);
#endif /* _SAMBA_TIME_H_ */