aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/watchdogd
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2013-07-30 16:20:54 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2013-07-30 16:20:54 +0000
commit22dbec3de700a335b840804917e9a1a99bc6ab3e (patch)
tree31ad271fa0ed993183d859ee47d936400843f85e /usr.sbin/watchdogd
parent6d9b2f85f87dc3ed5daca69f1bf020f624c44ac2 (diff)
downloadsrc-22dbec3de700a335b840804917e9a1a99bc6ab3e.tar.gz
src-22dbec3de700a335b840804917e9a1a99bc6ab3e.zip
Apply a casting sledgehammer.
Submitted by: dhw
Notes
Notes: svn path=/head/; revision=253808
Diffstat (limited to 'usr.sbin/watchdogd')
-rw-r--r--usr.sbin/watchdogd/watchdogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/watchdogd/watchdogd.c b/usr.sbin/watchdogd/watchdogd.c
index 9d405c91b761..9b4440c3b497 100644
--- a/usr.sbin/watchdogd/watchdogd.c
+++ b/usr.sbin/watchdogd/watchdogd.c
@@ -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",