From 0b8e728d27cd835a80fe5c2ea948b1179ba39402 Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Tue, 10 Mar 2009 19:21:22 +0000 Subject: [PATCH] DEVEL15-dumpcallbackstate-64bit-timet-safe-20090310 LICENSE IPL10 FIXES 124451 on 64 bit platforms, 64 bit time_t means returning into afs_int32 is bad (cherry picked from commit 77452db304abfc6ad0139769034986dc8bf172d9) --- src/viced/callback.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/viced/callback.c b/src/viced/callback.c index 6df129960..da9d38527 100644 --- a/src/viced/callback.c +++ b/src/viced/callback.c @@ -2654,7 +2654,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 -- 2.39.5