Re: [PATCH 1/2] Fix compiler warning in iprange.c

2017-12-20 Thread Willy Tarreau
On Fri, Dec 15, 2017 at 10:21:29AM -0600, Ryan O'Hara wrote: > 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. Both patches applied, than

[PATCH 1/2] Fix compiler warning in iprange.c

2017-12-15 Thread Ryan O'Hara
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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -