From 23d4a021fce694e46c10903cd497acdc41b7f422 Mon Sep 17 00:00:00 2001 From: David Schweikert Date: Mon, 23 Jan 2017 21:28:26 +0100 Subject: [PATCH] fix warnings --- src/fping.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/fping.c b/src/fping.c index 81c2378..77b4732 100644 --- a/src/fping.c +++ b/src/fping.c @@ -38,15 +38,6 @@ extern "C" #include "fping.h" #include "options.h" -/* if compiling for Windows, use this separate set - (too difficult to ifdef all the autoconf defines) */ -#ifdef WIN32 - -/*** Windows includes ***/ - - -#else - /*** autoconf includes ***/ @@ -90,17 +81,9 @@ extern "C" #include #include -/* RS6000 hasn't getopt.h */ -#ifdef HAVE_GETOPT_H #include -#endif /* HAVE_GETOPT_H */ -/* RS6000 has sys/select.h */ -#ifdef HAVE_SYS_SELECT_H #include -#endif /* HAVE_SYS_SELECT_H */ - -#endif /* WIN32 */ /*** externals ***/ @@ -436,7 +419,7 @@ int main( int argc, char **argv ) break; case 'b': - if (!sscanf(optarg,"%i",&ping_data_size)) + if (!sscanf(optarg,"%u",&ping_data_size)) usage(1); break;