aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2001-03-09 23:06:15 +0000
committerManuel Novoa III <mjn3@codepoet.org>2001-03-09 23:06:15 +0000
commitfa45f22e5099e093d09ea41144b76ef1a6464bfd (patch)
tree0596e35e5493fbe5ab0a34db152e5da3a591d38f
parentd92168486bd9008b2ecd33a6b3b569b54cbe1da0 (diff)
downloadbusybox-w32-fa45f22e5099e093d09ea41144b76ef1a6464bfd.tar.gz
busybox-w32-fa45f22e5099e093d09ea41144b76ef1a6464bfd.tar.bz2
busybox-w32-fa45f22e5099e093d09ea41144b76ef1a6464bfd.zip
Use perror_msg_and_die function where appropriate.
-rw-r--r--ifconfig.c5
-rw-r--r--networking/ifconfig.c5
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 @@
15 * Foundation; either version 2 of the License, or (at 15 * Foundation; either version 2 of the License, or (at
16 * your option) any later version. 16 * your option) any later version.
17 * 17 *
18 * $Id: ifconfig.c,v 1.5 2001/03/08 22:57:00 mjn3 Exp $ 18 * $Id: ifconfig.c,v 1.6 2001/03/09 23:06:15 mjn3 Exp $
19 * 19 *
20 */ 20 */
21 21
@@ -271,8 +271,7 @@ int ifconfig_main(int argc, char **argv)
271 271
272 /* Create a channel to the NET kernel. */ 272 /* Create a channel to the NET kernel. */
273 if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { 273 if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
274 perror("socket"); 274 perror_msg_and_die("socket");
275 exit(1);
276 } 275 }
277 276
278 /* skip argv[0] */ 277 /* 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 @@
15 * Foundation; either version 2 of the License, or (at 15 * Foundation; either version 2 of the License, or (at
16 * your option) any later version. 16 * your option) any later version.
17 * 17 *
18 * $Id: ifconfig.c,v 1.5 2001/03/08 22:57:00 mjn3 Exp $ 18 * $Id: ifconfig.c,v 1.6 2001/03/09 23:06:15 mjn3 Exp $
19 * 19 *
20 */ 20 */
21 21
@@ -271,8 +271,7 @@ int ifconfig_main(int argc, char **argv)
271 271
272 /* Create a channel to the NET kernel. */ 272 /* Create a channel to the NET kernel. */
273 if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { 273 if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
274 perror("socket"); 274 perror_msg_and_die("socket");
275 exit(1);
276 } 275 }
277 276
278 /* skip argv[0] */ 277 /* skip argv[0] */