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 | |
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')
-rw-r--r-- | source4/lib/util/time.c | 8 | ||||
-rw-r--r-- | source4/lib/util/time.h | 5 | ||||
-rw-r--r-- | source4/torture/util.c | 7 |
3 files changed, 12 insertions, 8 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_ */ diff --git a/source4/torture/util.c b/source4/torture/util.c index 0e9dda42fa..96fdf4d5d9 100644 --- a/source4/torture/util.c +++ b/source4/torture/util.c @@ -24,13 +24,6 @@ #include "libcli/raw/interfaces.h" #include "libcli/raw/libcliraw.h" -/** - check if 2 NTTIMEs are equal. -*/ -bool nt_time_equal(NTTIME *t1, NTTIME *t2) -{ - return *t1 == *t2; -} NTSTATUS torture_second_tcon(TALLOC_CTX *mem_ctx, struct smbcli_session *session, |