projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aec8989
)
CONTRIB: iprange: Fix compiler warning in iprange.c
author
Ryan O'Hara
<rohara@redhat.com>
Fri, 15 Dec 2017 16:21:29 +0000
(10:21 -0600)
committer
Willy Tarreau
<w@1wt.eu>
Wed, 20 Dec 2017 08:36:58 +0000
(09:36 +0100)
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
patch
|
blob
|
history
diff --git
a/contrib/iprange/iprange.c
b/contrib/iprange/iprange.c
index
91690c7
..
abae007
100644
(file)
--- a/
contrib/iprange/iprange.c
+++ b/
contrib/iprange/iprange.c
@@
-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);
}