From: Ben Gras Date: Mon, 10 Oct 2005 16:10:27 +0000 (+0000) Subject: Fix warning (gcc) X-Git-Tag: v3.1.2a~645 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/static/topojson.min.js?a=commitdiff_plain;h=c5b13941331c92f4d08be925dd60e1780a2609c2;p=minix.git Fix warning (gcc) --- diff --git a/commands/simple/add_route.c b/commands/simple/add_route.c index cab31631d..cc7380c4f 100755 --- a/commands/simple/add_route.c +++ b/commands/simple/add_route.c @@ -31,7 +31,7 @@ static void usage(void); static int name_to_ip(char *name, ipaddr_t *addr); static int parse_cidr(char *cidr, ipaddr_t *addr, ipaddr_t *mask); -void main(int argc, char *argv[]) +int main(int argc, char *argv[]) { struct netent *netent; ipaddr_t gateway, destination, netmask, defaultmask=0; @@ -278,7 +278,7 @@ void main(int argc, char *argv[]) strerror(errno)); exit(1); } - exit(0); + return(0); } static void usage(void)