Use perror_msg_and_die function where appropriate.
authorManuel Novoa III <mjn3@codepoet.org>
Fri, 9 Mar 2001 23:06:15 +0000 (23:06 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Fri, 9 Mar 2001 23:06:15 +0000 (23:06 -0000)
ifconfig.c
networking/ifconfig.c

index f342ceedefa54033d27789b210971dea6ece0d10..daf1894581c248682bd65f137c0b607f5ff03b47 100644 (file)
@@ -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] */
index f342ceedefa54033d27789b210971dea6ece0d10..daf1894581c248682bd65f137c0b607f5ff03b47 100644 (file)
@@ -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] */