From b47e9749cf99f94e92f7211cabc0a54c2b1da69d Mon Sep 17 00:00:00 2001 From: mjn3 Date: Fri, 9 Mar 2001 23:06:15 +0000 Subject: Use perror_msg_and_die function where appropriate. git-svn-id: svn://busybox.net/trunk/busybox@2033 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- ifconfig.c | 5 ++--- networking/ifconfig.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ifconfig.c b/ifconfig.c index f342ceede..daf189458 100644 --- a/ifconfig.c +++ b/ifconfig.c @@ -15,7 +15,7 @@ * Foundation; either version 2 of the License, or (at * your option) any later version. * - * $Id: ifconfig.c,v 1.5 2001/03/08 22:57:00 mjn3 Exp $ + * $Id: ifconfig.c,v 1.6 2001/03/09 23:06:15 mjn3 Exp $ * */ @@ -271,8 +271,7 @@ int ifconfig_main(int argc, char **argv) /* Create a channel to the NET kernel. */ if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { - perror("socket"); - exit(1); + perror_msg_and_die("socket"); } /* skip argv[0] */ diff --git a/networking/ifconfig.c b/networking/ifconfig.c index f342ceede..daf189458 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c @@ -15,7 +15,7 @@ * Foundation; either version 2 of the License, or (at * your option) any later version. * - * $Id: ifconfig.c,v 1.5 2001/03/08 22:57:00 mjn3 Exp $ + * $Id: ifconfig.c,v 1.6 2001/03/09 23:06:15 mjn3 Exp $ * */ @@ -271,8 +271,7 @@ int ifconfig_main(int argc, char **argv) /* Create a channel to the NET kernel. */ if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { - perror("socket"); - exit(1); + perror_msg_and_die("socket"); } /* skip argv[0] */ -- cgit v1.2.3-55-g6feb