Date: Sat, 21 Jan 2006 16:10:39 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 90101 for review Message-ID: <200601211610.k0LGAdZS089382@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=90101 Change 90101 by rwatson@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(×tamp, timestr); timestr[24] = '\0'; /* No new line */ fprintf(fp, "%s", timestr); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601211610.k0LGAdZS089382>