1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Move nt_time_equal() to libutil.

(This used to be commit 9705263a6c)
This commit is contained in:
Jelmer Vernooij 2008-02-09 14:24:24 +01:00
parent 4932e4bb7a
commit 3525f77e56
3 changed files with 12 additions and 8 deletions

View 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;
}

View 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_ */

View File

@ -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,