]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CONTRIB: iprange: Fix compiler warning in iprange.c
authorRyan O'Hara <rohara@redhat.com>
Fri, 15 Dec 2017 16:21:29 +0000 (10:21 -0600)
committerWilly Tarreau <w@1wt.eu>
Wed, 20 Dec 2017 08:36:58 +0000 (09:36 +0100)
commit957d12028e6a15cbbb42beab3dfe27445133998a
treea0836f67085a568d3185afd011902985029da434
parentaec8989e5303a33cdb100d30605ab55daa580058
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.
contrib/iprange/iprange.c