Fix compiler warnings, patch by Steven Scholz
This commit is contained in:
parent
826b48b624
commit
883d4842d2
@ -15,7 +15,7 @@
|
|||||||
* that either displays or sets the characteristics of
|
* that either displays or sets the characteristics of
|
||||||
* one or more of the system's networking interfaces.
|
* one or more of the system's networking interfaces.
|
||||||
*
|
*
|
||||||
* Version: $Id: interface.c,v 1.13 2003/01/14 08:54:06 andersen Exp $
|
* Version: $Id: interface.c,v 1.14 2003/02/09 22:40:33 bug1 Exp $
|
||||||
*
|
*
|
||||||
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
|
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
|
||||||
* and others. Copyright 1993 MicroWalt Corporation
|
* and others. Copyright 1993 MicroWalt Corporation
|
||||||
@ -960,7 +960,7 @@ static int if_readconf(void)
|
|||||||
(as of 2.1.128) */
|
(as of 2.1.128) */
|
||||||
skfd2 = get_socket_for_af(AF_INET);
|
skfd2 = get_socket_for_af(AF_INET);
|
||||||
if (skfd2 < 0) {
|
if (skfd2 < 0) {
|
||||||
perror_msg(("warning: no inet socket available: %s\n"));
|
perror_msg(("warning: no inet socket available"));
|
||||||
/* Try to soldier on with whatever socket we can get hold of. */
|
/* Try to soldier on with whatever socket we can get hold of. */
|
||||||
skfd2 = sockets_open(0);
|
skfd2 = sockets_open(0);
|
||||||
if (skfd2 < 0)
|
if (skfd2 < 0)
|
||||||
@ -1106,7 +1106,7 @@ static int if_readlist_proc(char *target)
|
|||||||
|
|
||||||
fh = fopen(_PATH_PROCNET_DEV, "r");
|
fh = fopen(_PATH_PROCNET_DEV, "r");
|
||||||
if (!fh) {
|
if (!fh) {
|
||||||
perror_msg(_("Warning: cannot open %s (%s). Limited output.\n"), _PATH_PROCNET_DEV);
|
perror_msg(_("Warning: cannot open %s. Limited output."), _PATH_PROCNET_DEV);
|
||||||
return if_readconf();
|
return if_readconf();
|
||||||
}
|
}
|
||||||
fgets(buf, sizeof buf, fh); /* eat line */
|
fgets(buf, sizeof buf, fh); /* eat line */
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
*
|
||||||
* $Id: login.c,v 1.1 2003/01/21 20:59:34 bug1 Exp $
|
* $Id: login.c,v 1.2 2003/02/09 22:40:33 bug1 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -37,7 +37,6 @@ void print_login_issue(const char *issue_file, const char *tty)
|
|||||||
FILE *fd;
|
FILE *fd;
|
||||||
int c;
|
int c;
|
||||||
char buf[256];
|
char buf[256];
|
||||||
char *ret;
|
|
||||||
time_t t;
|
time_t t;
|
||||||
struct utsname uts;
|
struct utsname uts;
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ do_it_now:
|
|||||||
if (kill(*pl, sig) != 0) {
|
if (kill(*pl, sig) != 0) {
|
||||||
errors++;
|
errors++;
|
||||||
if (quiet==0)
|
if (quiet==0)
|
||||||
perror_msg( "Could not kill pid '%d'", *pl);
|
perror_msg( "Could not kill pid '%ld'", *pl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user