summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorManuel Novoa III2001-03-09 23:06:15 +0000
committerManuel Novoa III2001-03-09 23:06:15 +0000
commitfa45f22e5099e093d09ea41144b76ef1a6464bfd (patch)
tree0596e35e5493fbe5ab0a34db152e5da3a591d38f /networking
parentd92168486bd9008b2ecd33a6b3b569b54cbe1da0 (diff)
downloadbusybox-fa45f22e5099e093d09ea41144b76ef1a6464bfd.zip
busybox-fa45f22e5099e093d09ea41144b76ef1a6464bfd.tar.gz
Use perror_msg_and_die function where appropriate.
Diffstat (limited to 'networking')
-rw-r--r--networking/ifconfig.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c
index f342cee..daf1894 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] */