diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-02-09 22:40:34 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-02-09 22:40:34 +0000 |
commit | 883d4842d26e0ad7667c04579c089ec3ba7960d8 (patch) | |
tree | 058d47cfedf18269b0a6986a7536e9b812c74677 | |
parent | 826b48b624e3c02b432b8ffbb7809657ddb3a012 (diff) | |
download | busybox-w32-883d4842d26e0ad7667c04579c089ec3ba7960d8.tar.gz busybox-w32-883d4842d26e0ad7667c04579c089ec3ba7960d8.tar.bz2 busybox-w32-883d4842d26e0ad7667c04579c089ec3ba7960d8.zip |
Fix compiler warnings, patch by Steven Scholz
-rw-r--r-- | libbb/interface.c | 6 | ||||
-rw-r--r-- | libbb/login.c | 3 | ||||
-rw-r--r-- | procps/kill.c | 2 |
3 files changed, 5 insertions, 6 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 */ |
diff --git a/libbb/login.c b/libbb/login.c index 9b33f6c40..092f1594a 100644 --- a/libbb/login.c +++ b/libbb/login.c | |||
@@ -17,7 +17,7 @@ | |||
17 | * along with this program; if not, write to the Free Software | 17 | * along with this program; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 | * | 19 | * |
20 | * $Id: login.c,v 1.1 2003/01/21 20:59:34 bug1 Exp $ | 20 | * $Id: login.c,v 1.2 2003/02/09 22:40:33 bug1 Exp $ |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include <stdio.h> | 23 | #include <stdio.h> |
@@ -37,7 +37,6 @@ void print_login_issue(const char *issue_file, const char *tty) | |||
37 | FILE *fd; | 37 | FILE *fd; |
38 | int c; | 38 | int c; |
39 | char buf[256]; | 39 | char buf[256]; |
40 | char *ret; | ||
41 | time_t t; | 40 | time_t t; |
42 | struct utsname uts; | 41 | struct utsname uts; |
43 | 42 | ||
diff --git a/procps/kill.c b/procps/kill.c index 9b31f28d6..c7a3c7f72 100644 --- a/procps/kill.c +++ b/procps/kill.c | |||
@@ -140,7 +140,7 @@ do_it_now: | |||
140 | if (kill(*pl, sig) != 0) { | 140 | if (kill(*pl, sig) != 0) { |
141 | errors++; | 141 | errors++; |
142 | if (quiet==0) | 142 | if (quiet==0) |
143 | perror_msg( "Could not kill pid '%d'", *pl); | 143 | perror_msg( "Could not kill pid '%ld'", *pl); |
144 | } | 144 | } |
145 | } | 145 | } |
146 | } | 146 | } |