mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-23 04:42:28 +00:00
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:
parent
aec8989e53
commit
957d12028e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user