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:
0e95c8a
)
s3:lib: make_unix_date3() is the same as pull_dos_date3()
author
Stefan Metzmacher
<metze@samba.org>
Wed, 26 Oct 2011 06:54:11 +0000
(08:54 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 26 Oct 2011 07:42:04 +0000
(09:42 +0200)
Except for a 'void *' vs. 'uint8_t *'.
As a first step let make_unix_date() call pull_dos_date(),
so that we he the logic only once. We can fix the callers
later.
metze
source3/lib/time.c
patch
|
blob
|
history
diff --git
a/source3/lib/time.c
b/source3/lib/time.c
index e66941e27c9c2749ad13bf86dedc7ab1d86ef0e6..a83cb63e8248d803e5becdca10aecd933fb286f6 100644
(file)
--- a/
source3/lib/time.c
+++ b/
source3/lib/time.c
@@
-217,11
+217,7
@@
time_t make_unix_date2(const void *date_ptr, int zone_offset)
time_t make_unix_date3(const void *date_ptr, int zone_offset)
{
- time_t t = (time_t)IVAL(date_ptr,0);
- if (!null_time(t)) {
- t += zone_offset;
- }
- return(t);
+ return pull_dos_date3(date_ptr, zone_offset);
}
time_t srv_make_unix_date(const void *date_ptr)