Fix a couple of warnings noted with -Wall on FreeBSD-2.1.5.
Pointed out by: Charlie Sorsby <crs@hgo.net>
This commit is contained in:
parent
627961e45f
commit
5264ca0298
@ -17,7 +17,7 @@
|
||||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Id: command.c,v 1.137 1998/06/06 23:00:33 brian Exp $
|
||||
* $Id: command.c,v 1.138 1998/06/08 20:23:44 brian Exp $
|
||||
*
|
||||
*/
|
||||
#include <sys/types.h>
|
||||
@ -124,7 +124,7 @@
|
||||
#define NEG_DNS 50
|
||||
|
||||
const char Version[] = "2.0-beta";
|
||||
const char VersionDate[] = "$Date: 1998/06/06 23:00:33 $";
|
||||
const char VersionDate[] = "$Date: 1998/06/08 20:23:44 $";
|
||||
|
||||
static int ShowCommand(struct cmdargs const *);
|
||||
static int TerminalCommand(struct cmdargs const *);
|
||||
@ -384,7 +384,7 @@ ShellCommand(struct cmdargs const *arg, int bg)
|
||||
|
||||
p = getpid();
|
||||
if (daemon(1, 1) == -1) {
|
||||
log_Printf(LogERROR, "%d: daemon: %s\n", p, strerror(errno));
|
||||
log_Printf(LogERROR, "%d: daemon: %s\n", (int)p, strerror(errno));
|
||||
exit(1);
|
||||
}
|
||||
} else if (arg->prompt)
|
||||
|
@ -17,7 +17,7 @@
|
||||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Id: route.c,v 1.42.2.25 1998/05/16 21:19:00 brian Exp $
|
||||
* $Id: route.c,v 1.45 1998/05/21 21:48:10 brian Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -291,8 +291,6 @@ route_Show(struct cmdargs const *arg)
|
||||
log_Printf(LogERROR, "route_Show: sysctl: estimate: %s\n", strerror(errno));
|
||||
return (1);
|
||||
}
|
||||
if (needed < 0)
|
||||
return (1);
|
||||
sp = malloc(needed);
|
||||
if (sp == NULL)
|
||||
return (1);
|
||||
@ -365,8 +363,6 @@ route_IfDelete(struct bundle *bundle, int all)
|
||||
strerror(errno));
|
||||
return;
|
||||
}
|
||||
if (needed < 0)
|
||||
return;
|
||||
|
||||
sp = malloc(needed);
|
||||
if (sp == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user