Module Name: src Committed By: christos Date: Fri Apr 2 15:38:05 UTC 2010
Modified Files: src/dist/ntp/util: ntptime.c Log Message: remove bogus cast that hides bugs if tv_sec is non POSIX compliant. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/dist/ntp/util/ntptime.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/dist/ntp/util/ntptime.c diff -u src/dist/ntp/util/ntptime.c:1.4 src/dist/ntp/util/ntptime.c:1.5 --- src/dist/ntp/util/ntptime.c:1.4 Sat Mar 18 03:09:03 2006 +++ src/dist/ntp/util/ntptime.c Fri Apr 2 11:38:05 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: ntptime.c,v 1.4 2006/03/18 08:09:03 kardel Exp $ */ +/* $NetBSD: ntptime.c,v 1.5 2010/04/02 15:38:05 christos Exp $ */ /* * NTP test program @@ -301,7 +301,7 @@ printf(" ntptime=%x.%x unixtime=%x.%0*d %s", (unsigned int) ts.l_ui, (unsigned int) ts.l_uf, (int) ntv.time.tv_sec, fdigits, (int) time_frac, - ctime((const time_t *) &ntv.time.tv_sec)); + ctime(&ntv.time.tv_sec)); #if NTP_API > 3 printf(", TAI offset %ld\n", (long)ntv.tai); #else