fix --help test, prepare 4.1 release

pull/132/head
David Schweikert 6 years ago
parent df7a819fd9
commit b4277e33a9

@ -3,7 +3,7 @@ dnl Process this file with autoconf to produce a configure script.
dnl Minimum Autoconf version required.
AC_PREREQ(2.59)
AC_INIT([fping],[4.0])
AC_INIT([fping],[4.1])
dnl --disable-ipv4
AC_ARG_ENABLE([ipv4],

@ -354,6 +354,7 @@ int main(int argc, char** argv)
/* pre-parse -h/--help, so that we also can output help information
* without trying to open the socket, which might fail */
prog = argv[0];
if(argc == 2 && ( strcmp(argv[1],"-h")==0 || strcmp(argv[1],"--help")==0 )) {
usage(0);
}
@ -369,7 +370,6 @@ int main(int argc, char** argv)
perror("cannot setuid");
}
prog = argv[0];
optparse_init(&optparse_state, argv);
ident = getpid() & 0xFFFF;
verbose_flag = 1;

Loading…
Cancel
Save