Move nt_time_equal() to libutil.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 9 Feb 2008 13:24:24 +0000 (14:24 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 9 Feb 2008 13:24:24 +0000 (14:24 +0100)
source/lib/util/time.c
source/lib/util/time.h
source/torture/util.c

index fc514980098a7877154c02000dbce1d60f1ff608..a18188580619378fe91a6f863cb3a0aa391d663d 100644 (file)
@@ -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;
+}
index 557c5d4eabb5594dd83a53b155fe3fb02d607988..1ab976ca78c1d3428abd461ac3e3028a003e02f2 100644 (file)
@@ -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_ */
index 0e9dda42fa4eea5488fc086d4ec3d06bd3e3643f..96fdf4d5d9b8ed75c9bce1c0f1b10e21c5df8432 100644 (file)
 #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,