git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
581fd18
)
dumpcallbackstate-64bit-timet-safe-20090310
author
Matt Benjamin
<matt@linuxbox.com>
Tue, 10 Mar 2009 19:21:12 +0000 (19:21 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Tue, 10 Mar 2009 19:21:12 +0000 (19:21 +0000)
LICENSE IPL10
FIXES 124451
on 64 bit platforms, 64 bit time_t means returning into afs_int32 is bad
src/viced/callback.c
patch
|
blob
|
history
diff --git
a/src/viced/callback.c
b/src/viced/callback.c
index
84305ad
..
e105228
100644
(file)
--- a/
src/viced/callback.c
+++ b/
src/viced/callback.c
@@
-2653,7
+2653,8
@@
int
DumpCallBackState(void)
{
int fd, oflag;
- afs_uint32 magic = MAGIC, now = FT_ApproxTime(), freelisthead;
+ afs_uint32 magic = MAGIC, freelisthead;
+ time_t now = FT_ApproxTime();
oflag = O_WRONLY | O_CREAT | O_TRUNC;
#ifdef AFS_NT40_ENV