git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4c50e2
)
lib: Use BVAL macro in interpret_long_date
author
Volker Lendecke
<vl@samba.org>
Mon, 16 Jun 2014 15:00:33 +0000
(15:00 +0000)
committer
Jeremy Allison
<jra@samba.org>
Tue, 17 Jun 2014 23:03:13 +0000
(
01:03
+0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/time.c
patch
|
blob
|
history
diff --git
a/source3/lib/time.c
b/source3/lib/time.c
index b4b9d19dc93d0185306d9701ebfd1a393d97914e..dab9b3167a4706c21c7e9ac69e5d1e8b0539b4b7 100644
(file)
--- a/
source3/lib/time.c
+++ b/
source3/lib/time.c
@@
-243,7
+243,7
@@
time_t srv_make_unix_date3(const void *date_ptr)
struct timespec interpret_long_date(const char *p)
{
NTTIME nt;
- nt =
IVAL(p,0) + ((uint64_t)IVAL(p,4) << 32
);
+ nt =
BVAL(p, 0
);
if (nt == (uint64_t)-1) {
struct timespec ret;
ret.tv_sec = (time_t)-1;