CONTRIB: iprange: Fix compiler warning in iprange.c

The declaration of main() in iprange.c did not specify a type, causing
a compiler warning [-Wimplicit-int]. This patch simply declares main()
to be type 'int' and calls exit(0) at the end of the function.
This commit is contained in:
Ryan O'Hara 2017-12-15 10:21:29 -06:00 committed by Willy Tarreau
parent aec8989e53
commit 957d12028e

View File

@ -111,7 +111,7 @@ static void usage(const char *argv0)
"\n", argv0);
}
main(int argc, char **argv)
int main(int argc, char **argv)
{
char line[MAXLINE];
int l, lnum;
@ -198,4 +198,5 @@ main(int argc, char **argv)
convert_range(sa, da, he, NULL);
}
}
exit(0);
}