summaryrefslogtreecommitdiff
path: root/net/coda5_server/files/patch-aa
blob: d1d4f2fd4f24e86ea09e0db23399fce9cee239a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- coda-src/update/updatesrv.cc.orig	Sun Mar  2 17:55:46 2003
+++ coda-src/update/updatesrv.cc	Sun Mar  2 17:57:50 2003
@@ -184,6 +184,7 @@
     long portmapid;
     struct stat statbuf;
     char *miscdir;
+    time_t tim;
 
     /* process the command line arguments */
     for (i = 1; i < argc; i++) {
@@ -305,7 +306,7 @@
     }
     gettimeofday(&tp, &tsp);
     LogMsg(0, SrvDebugLevel, stdout, 
-	   "Update Server started %s", ctime(&tp.tv_sec));
+	   "Update Server started %s", ctime(&(tim = tp.tv_sec)));
 
     CODA_ASSERT(LWP_WaitProcess((char *)&parentPid) == LWP_SUCCESS);
 
@@ -455,6 +456,7 @@
     char    name[MAXPATHLEN];	/* area to hold the name */
     struct stat buff;		/* buffer for stat */
     int     len;
+    time_t  tim;
 
     rc = 0;
 
@@ -518,7 +520,7 @@
     *CurrentUsecs = tp.tv_usec;
     LogMsg(2, SrvDebugLevel, stdout, 
 	   "UpdateFetch returns %s newtime is %d at %s",
-	   ViceErrorMsg((int)rc), *NewTime, ctime(&tp.tv_sec));
+	   ViceErrorMsg((int)rc), *NewTime, ctime(&(tim = tp.tv_sec)));
     return(rc);
 }