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:
42d89db
)
s3:lib/time: remove TIME_T_MIN/MAX defines
author
Björn Jacke
<bj@sernet.de>
Wed, 6 Jan 2010 23:41:50 +0000
(
00:41
+0100)
committer
Karolin Seeger
<kseeger@samba.org>
Mon, 12 Apr 2010 14:00:55 +0000
(16:00 +0200)
we already get them from lib/util/time.h
(cherry picked from commit
f5729dbb6e720cb6076ea053f1ad0680259e6b39
)
The last two patches address bug #7352 (TIME_T_MAX defines inconsistent).
source3/lib/time.c
patch
|
blob
|
history
diff --git
a/source3/lib/time.c
b/source3/lib/time.c
index a418c42dd76747ebc433ad74fc8acfcf10c25610..181ac485a397807f0d025464ea6bee66c2b288e7 100644
(file)
--- a/
source3/lib/time.c
+++ b/
source3/lib/time.c
@@
-28,14
+28,6
@@
*/
-#ifndef TIME_T_MIN
-#define TIME_T_MIN ((time_t)0 < (time_t) -1 ? (time_t) 0 \
- : ~ (time_t) 0 << (sizeof (time_t) * CHAR_BIT - 1))
-#endif
-#ifndef TIME_T_MAX
-#define TIME_T_MAX (~ (time_t) 0 - TIME_T_MIN)
-#endif
-
#define NTTIME_INFINITY (NTTIME)0x8000000000000000LL
#if (SIZEOF_LONG == 8)