aboutsummaryrefslogtreecommitdiff
path: root/libbb/interface.c
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-02-09 22:40:34 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-02-09 22:40:34 +0000
commit883d4842d26e0ad7667c04579c089ec3ba7960d8 (patch)
tree058d47cfedf18269b0a6986a7536e9b812c74677 /libbb/interface.c
parent826b48b624e3c02b432b8ffbb7809657ddb3a012 (diff)
downloadbusybox-w32-883d4842d26e0ad7667c04579c089ec3ba7960d8.tar.gz
busybox-w32-883d4842d26e0ad7667c04579c089ec3ba7960d8.tar.bz2
busybox-w32-883d4842d26e0ad7667c04579c089ec3ba7960d8.zip
Fix compiler warnings, patch by Steven Scholz
Diffstat (limited to 'libbb/interface.c')
-rw-r--r--libbb/interface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/interface.c b/libbb/interface.c
index bdb77bc4a..fb794169d 100644
--- a/libbb/interface.c
+++ b/libbb/interface.c
@@ -15,7 +15,7 @@
15 * that either displays or sets the characteristics of 15 * that either displays or sets the characteristics of
16 * one or more of the system's networking interfaces. 16 * one or more of the system's networking interfaces.
17 * 17 *
18 * Version: $Id: interface.c,v 1.13 2003/01/14 08:54:06 andersen Exp $ 18 * Version: $Id: interface.c,v 1.14 2003/02/09 22:40:33 bug1 Exp $
19 * 19 *
20 * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> 20 * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
21 * and others. Copyright 1993 MicroWalt Corporation 21 * and others. Copyright 1993 MicroWalt Corporation
@@ -960,7 +960,7 @@ static int if_readconf(void)
960 (as of 2.1.128) */ 960 (as of 2.1.128) */
961 skfd2 = get_socket_for_af(AF_INET); 961 skfd2 = get_socket_for_af(AF_INET);
962 if (skfd2 < 0) { 962 if (skfd2 < 0) {
963 perror_msg(("warning: no inet socket available: %s\n")); 963 perror_msg(("warning: no inet socket available"));
964 /* Try to soldier on with whatever socket we can get hold of. */ 964 /* Try to soldier on with whatever socket we can get hold of. */
965 skfd2 = sockets_open(0); 965 skfd2 = sockets_open(0);
966 if (skfd2 < 0) 966 if (skfd2 < 0)
@@ -1106,7 +1106,7 @@ static int if_readlist_proc(char *target)
1106 1106
1107 fh = fopen(_PATH_PROCNET_DEV, "r"); 1107 fh = fopen(_PATH_PROCNET_DEV, "r");
1108 if (!fh) { 1108 if (!fh) {
1109 perror_msg(_("Warning: cannot open %s (%s). Limited output.\n"), _PATH_PROCNET_DEV); 1109 perror_msg(_("Warning: cannot open %s. Limited output."), _PATH_PROCNET_DEV);
1110 return if_readconf(); 1110 return if_readconf();
1111 } 1111 }
1112 fgets(buf, sizeof buf, fh); /* eat line */ 1112 fgets(buf, sizeof buf, fh); /* eat line */