summaryrefslogtreecommitdiffstats
path: root/source3/lib/time.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-16 13:36:53 +0200
committerGünther Deschner <gd@samba.org>2008-06-23 23:38:52 +0200
commit33000d77e4b904cf9cdfd3e3d83a3c3cc84d7f2b (patch)
tree08fd168b523f2475db59e7e5020831abe572a3a9 /source3/lib/time.c
parente5ac03b0ae22855f7131ba886ef829b7fe44e949 (diff)
downloadsamba-33000d77e4b904cf9cdfd3e3d83a3c3cc84d7f2b.tar.gz
samba-33000d77e4b904cf9cdfd3e3d83a3c3cc84d7f2b.tar.xz
samba-33000d77e4b904cf9cdfd3e3d83a3c3cc84d7f2b.zip
time: move uint64s_nt_time_to_unix_abs() to lib/time.c
Guenther (This used to be commit 58f54f180f0a942776455ab6e813628422493dac)
Diffstat (limited to 'source3/lib/time.c')
-rw-r--r--source3/lib/time.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/lib/time.c b/source3/lib/time.c
index 17990b9269..9db88b3fc8 100644
--- a/source3/lib/time.c
+++ b/source3/lib/time.c
@@ -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.
****************************************************************************/