aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-03-09 23:06:15 +0000
committermjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-03-09 23:06:15 +0000
commitb47e9749cf99f94e92f7211cabc0a54c2b1da69d (patch)
tree0596e35e5493fbe5ab0a34db152e5da3a591d38f
parentaa3297f363d73414dcdd0f16e55b02774b9440ff (diff)
downloadbusybox-w32-b47e9749cf99f94e92f7211cabc0a54c2b1da69d.tar.gz
busybox-w32-b47e9749cf99f94e92f7211cabc0a54c2b1da69d.tar.bz2
busybox-w32-b47e9749cf99f94e92f7211cabc0a54c2b1da69d.zip
Use perror_msg_and_die function where appropriate.
git-svn-id: svn://busybox.net/trunk/busybox@2033 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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] */