lint
authorMike Karels <karels@ucbvax.Berkeley.EDU>
Wed, 5 Mar 1986 06:00:15 +0000 (22:00 -0800)
committerMike Karels <karels@ucbvax.Berkeley.EDU>
Wed, 5 Mar 1986 06:00:15 +0000 (22:00 -0800)
SCCS-vsn: sys/net/route.c 6.17

usr/src/sys/net/route.c

index b7d594b..20890d5 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)route.c     6.16 (Berkeley) %G%
+ *     @(#)route.c     6.17 (Berkeley) %G%
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -150,7 +150,7 @@ rtredirect(dst, gateway, flags, src)
                rt = 0;
        }
        if (rt == 0) {
                rt = 0;
        }
        if (rt == 0) {
-               rtinit(dst, gateway, SIOCADDRT,
+               rtinit(dst, gateway, (int)SIOCADDRT,
                    (flags & RTF_HOST) | RTF_GATEWAY | RTF_DYNAMIC);
                rtstat.rts_dynamic++;
                return;
                    (flags & RTF_HOST) | RTF_GATEWAY | RTF_DYNAMIC);
                rtstat.rts_dynamic++;
                return;
@@ -165,7 +165,8 @@ rtredirect(dst, gateway, flags, src)
                         * Changing from route to net => route to host.
                         * Create new route, rather than smashing route to net.
                         */
                         * Changing from route to net => route to host.
                         * Create new route, rather than smashing route to net.
                         */
-                       rtinit(dst, gateway, SIOCADDRT, flags | RTF_DYNAMIC);
+                       rtinit(dst, gateway, (int)SIOCADDRT,
+                           flags | RTF_DYNAMIC);
                        rtstat.rts_dynamic++;
                } else {
                        /*
                        rtstat.rts_dynamic++;
                } else {
                        /*