svn commit: r253808 - head/usr.sbin/watchdogd

John Baldwin jhb at FreeBSD.org
Tue Jul 30 16:20:55 UTC 2013


Author: jhb
Date: Tue Jul 30 16:20:54 2013
New Revision: 253808
URL: http://svnweb.freebsd.org/changeset/base/253808

Log:
  Apply a casting sledgehammer.
  
  Submitted by:	dhw

Modified:
  head/usr.sbin/watchdogd/watchdogd.c

Modified: head/usr.sbin/watchdogd/watchdogd.c
==============================================================================
--- head/usr.sbin/watchdogd/watchdogd.c	Tue Jul 30 16:17:30 2013	(r253807)
+++ head/usr.sbin/watchdogd/watchdogd.c	Tue Jul 30 16:20:54 2013	(r253808)
@@ -774,7 +774,7 @@ parseargs(int argc, char *argv[])
 		struct timespec ts;
 
 		pow2ns_to_ts(timeout, &ts);
-		if (pretimeout >= ts.tv_sec) {
+		if (pretimeout >= (uintmax_t)ts.tv_sec) {
 			errx(EX_USAGE,
 			    "pretimeout (%d) >= timeout (%d -> %ld)\n"
 			    "see manual section TIMEOUT RESOLUTION",


More information about the svn-src-head mailing list