diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-02-09 14:24:24 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-09 14:24:24 +0100 |
commit | 3525f77e56966d688a11e3f4520e9cd799fd4f23 (patch) | |
tree | ad9f3835f6bcbad194553f1d6178a980ae2eac08 /source4/lib/util/time.c | |
parent | 4932e4bb7ad11c6ef8ad3187063dba4e7481afa7 (diff) | |
download | samba-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/time.c')
-rw-r--r-- | source4/lib/util/time.c | 8 |
1 files changed, 8 insertions, 0 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; +} |