From deba26a7cb5e7f59cff37c73e5084879873ca39c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Tue, 20 Dec 2016 10:57:42 +0000 Subject: [PATCH] Code cleanup --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index cd9cbb6..085a94e 100644 --- a/src/main.c +++ b/src/main.c @@ -206,7 +206,7 @@ main(int argc, char **argv) if (option_is_set(opts, "v4only") && option_is_set(opts, "v6only")) { - gt_log("v4only and v6only are both set\n"); + gt_log("v4only and v6only cannot be both set\n"); return 1; } @@ -215,7 +215,7 @@ main(int argc, char **argv) return 1; } - if (gt.timeout <= 0 || gt.timeout > INT_MAX) { + if ((int)gt.timeout <= 0) { gt_log("bad timeout\n"); return 1; }