summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/route.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-06-10 00:16:07 +0000
committerbrian <brian@FreeBSD.org>1998-06-10 00:16:07 +0000
commit7c8026a0e0998033853b5fdc1a36f90147495145 (patch)
tree8a2f5fb48bf181e42be68f01ac8722efc8f4f855 /usr.sbin/ppp/route.c
parent5728cd1f8fdd0d37992986e3c1f24cc0fab9fafe (diff)
downloadFreeBSD-src-7c8026a0e0998033853b5fdc1a36f90147495145.zip
FreeBSD-src-7c8026a0e0998033853b5fdc1a36f90147495145.tar.gz
Fix a couple of warnings noted with -Wall on FreeBSD-2.1.5.
Pointed out by: Charlie Sorsby <crs@hgo.net>
Diffstat (limited to 'usr.sbin/ppp/route.c')
-rw-r--r--usr.sbin/ppp/route.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/ppp/route.c b/usr.sbin/ppp/route.c
index d87f879..da033f7 100644
--- a/usr.sbin/ppp/route.c
+++ b/usr.sbin/ppp/route.c
@@ -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)
OpenPOWER on IntegriCloud