PERFORCE change 90101 for review

Robert Watson rwatson at FreeBSD.org
Sat Jan 21 16:10:39 GMT 2006


http://perforce.freebsd.org/chv.cgi?CH=90101

Change 90101 by rwatson at rwatson_sesame on 2006/01/21 16:10:14

	Don't shadow 'time' with a variable.

Affected files ...

.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#24 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#24 (text+ko) ====

@@ -308,14 +308,14 @@
 static void
 print_sec64(FILE *fp, u_int64_t sec, char raw)
 {
-	time_t time;
+	time_t timestamp;
 	char timestr[26];
 
 	if (raw)
 		fprintf(fp, "%u", (u_int32_t)sec);
 	else {
-		time = (time_t)sec;
-		ctime_r(&time, timestr);
+		timestamp = (time_t)sec;
+		ctime_r(&timestamp, timestr);
 		timestr[24] = '\0'; /* No new line */
 		fprintf(fp, "%s", timestr);
 	}
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list