1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

time: move uint64s_nt_time_to_unix_abs() to lib/time.c

Guenther
(This used to be commit 58f54f180f)
This commit is contained in:
Günther Deschner 2008-06-16 13:36:53 +02:00
parent e5ac03b0ae
commit 33000d77e4
3 changed files with 8 additions and 7 deletions

View File

@ -1234,6 +1234,7 @@ bool nt_time_equals(const NTTIME *nt1, const NTTIME *nt2);
void TimeInit(void);
void get_process_uptime(struct timeval *ret_time);
time_t nt_time_to_unix_abs(const NTTIME *nt);
time_t uint64s_nt_time_to_unix_abs(const uint64_t *src);
void unix_timespec_to_nt_time(NTTIME *nt, struct timespec ts);
void unix_to_nt_time_abs(NTTIME *nt, time_t t);
bool null_mtime(time_t mtime);

View File

@ -1325,6 +1325,13 @@ time_t nt_time_to_unix_abs(const NTTIME *nt)
return (time_t)d;
}
time_t uint64s_nt_time_to_unix_abs(const uint64_t *src)
{
NTTIME nttime;
nttime = *src;
return nt_time_to_unix_abs(&nttime);
}
/****************************************************************************
Put a 8 byte filetime from a struct timespec. Uses GMT.
****************************************************************************/

View File

@ -84,13 +84,6 @@ static void display_account_info(uint32_t rid,
pdb_encode_acct_ctrl(r->acct_flags, NEW_PW_FORMAT_SPACE_PADDED_LEN));
}
static time_t uint64s_nt_time_to_unix_abs(const uint64 *src)
{
NTTIME nttime;
nttime = *src;
return nt_time_to_unix_abs(&nttime);
}
static NTSTATUS pull_netr_AcctLockStr(TALLOC_CTX *mem_ctx,
struct lsa_BinaryString *r,
struct netr_AcctLockStr **str_p)