From: David Schweikert Date: Fri, 17 Feb 2017 08:21:26 +0000 (+0100) Subject: fix compiler warning X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2d86786e25a043de8c9413a21ad278fef93614d;p=fping.git fix compiler warning --- diff --git a/src/fping.c b/src/fping.c index e14fcc1..4341b7d 100644 --- a/src/fping.c +++ b/src/fping.c @@ -696,6 +696,7 @@ int main(int argc, char** argv) exit(1); } +#ifdef FPING_SAFE_LIMITS if ((interval < MIN_INTERVAL * 100 || perhost_interval < MIN_PERHOST_INTERVAL * 100) && getuid()) { fprintf(stderr, "%s: these options are too risky for mere mortals.\n", prog); @@ -703,6 +704,7 @@ int main(int argc, char** argv) prog, MIN_INTERVAL, MIN_PERHOST_INTERVAL); exit(1); } +#endif if (ping_data_size > MAX_PING_DATA) { fprintf(stderr, "%s: data size %u not valid, must be lower than %u\n",