mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +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:
parent
e5ac03b0ae
commit
33000d77e4
@ -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);
|
||||
|
@ -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.
|
||||
****************************************************************************/
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user