aboutsummaryrefslogtreecommitdiff
path: root/sys/net/route.c
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-01-27 22:42:27 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-01-27 22:42:27 +0000
commit831a80b0d5d50e416fe5e4b237d3a9fd4eea00b8 (patch)
treef992000fa6fa60b61396de4df4bebeada04cda79 /sys/net/route.c
parentbe317f36a9bf314d51d60720160fc0677390c728 (diff)
downloadsrc-831a80b0d5d50e416fe5e4b237d3a9fd4eea00b8.tar.gz
src-831a80b0d5d50e416fe5e4b237d3a9fd4eea00b8.zip
Fix warnings in preparation for adding -Wall -Wcast-qual to the
kernel compile
Notes
Notes: svn path=/head/; revision=43305
Diffstat (limited to 'sys/net/route.c')
-rw-r--r--sys/net/route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index f011264c793c..6a17db6a1928 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)route.c 8.2 (Berkeley) 11/15/93
- * $Id: route.c,v 1.49 1998/02/09 06:09:59 eivind Exp $
+ * $Id: route.c,v 1.50 1998/04/17 22:36:57 des Exp $
*/
#include "opt_inet.h"
@@ -566,7 +566,7 @@ rtrequest(req, dst, gateway, netmask, flags, ret_nrt)
* Add the gateway. Possibly re-malloc-ing the storage for it
* also add the rt_gwroute if possible.
*/
- if (error = rt_setgate(rt, dst, gateway)) {
+ if ((error = rt_setgate(rt, dst, gateway)) != 0) {
Free(rt);
senderr(error);
}