[PATCH] lib: Use BVAL macro in interpret_long_date

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Jun 17 05:13:06 MDT 2014


Hi!

Review would be appreciated!

Thanks,

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
From 4660a8bda8581ea9bfc94de9a60fba5548a7e2db Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Mon, 16 Jun 2014 15:00:33 +0000
Subject: [PATCH] lib: Use BVAL macro in interpret_long_date

Signed-off-by: Volker Lendecke <vl at samba.org>
---
 source3/lib/time.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source3/lib/time.c b/source3/lib/time.c
index b4b9d19..dab9b31 100644
--- 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;
-- 
1.8.1.2



More information about the samba-technical mailing list