diff options
Diffstat (limited to 'cpukit/libnetworking/net/if.c')
-rw-r--r-- | cpukit/libnetworking/net/if.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/libnetworking/net/if.c b/cpukit/libnetworking/net/if.c index 43b0f0c57a..b7a7c1ee21 100644 --- a/cpukit/libnetworking/net/if.c +++ b/cpukit/libnetworking/net/if.c @@ -51,6 +51,7 @@ #include <net/if.h> #include <net/if_dl.h> #include <net/if_types.h> +#include <net/if_var.h> #include <net/radix.h> /* @@ -79,8 +80,7 @@ struct ifnet *ifnet; */ /* ARGSUSED*/ void -ifinit(dummy) - void *dummy; +ifinit(void *dummy) { struct ifnet *ifp; @@ -475,7 +475,7 @@ ifunit(char *name) * Interface ioctls. */ int -ifioctl(struct socket *so, int cmd, caddr_t data, struct proc *p) +ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p) { struct ifnet *ifp; struct ifreq *ifr; @@ -582,7 +582,7 @@ ifioctl(struct socket *so, int cmd, caddr_t data, struct proc *p) error = suser(p->p_ucred, &p->p_acflag); if (error) return (error); - if (ifp->if_ioctl == 0) + if (ifp->if_ioctl == NULL) return (EOPNOTSUPP); error = (*ifp->if_ioctl)(ifp, cmd, data); if (error == 0) @@ -590,7 +590,7 @@ ifioctl(struct socket *so, int cmd, caddr_t data, struct proc *p) return error; case SIOCGIFMEDIA: - if (ifp->if_ioctl == 0) + if (ifp->if_ioctl == NULL) return (EOPNOTSUPP); return ((*ifp->if_ioctl)(ifp, cmd, data)); |