From c77b8656bb979df2b12eea82e857f4cb9922ef60 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Mon, 25 Aug 1997 22:34:25 +0000 Subject: [PATCH] Fixed type mismatch for a (low quality interface) function with an arg of type u_short (just write the function in ANSI C like most other functions in this file instead of fixing the interface or depending on a gcc feature). --- sys/dev/wl/if_wl.c | 7 ++----- sys/i386/isa/if_wl.c | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c index 4c8124f096e..d17de614f37 100644 --- a/sys/dev/wl/if_wl.c +++ b/sys/dev/wl/if_wl.c @@ -1,4 +1,4 @@ -/* $Id: if_wl.c,v 1.6 1997/08/01 03:36:12 msmith Exp $ */ +/* $Id: if_wl.c,v 1.7 1997/08/02 05:19:32 msmith Exp $ */ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -935,9 +935,7 @@ wlstart(struct ifnet *ifp) * */ static int -wlread(unit, fd_p) -int unit; -u_short fd_p; +wlread(int unit, u_short fd_p) { register struct wl_softc *sc = WLSOFTC(unit); register struct ifnet *ifp = &sc->wl_if; @@ -2508,7 +2506,6 @@ wlpsacrc(u_char *buf) } return(crc); } - #ifdef WLCACHE /* diff --git a/sys/i386/isa/if_wl.c b/sys/i386/isa/if_wl.c index 4c8124f096e..d17de614f37 100644 --- a/sys/i386/isa/if_wl.c +++ b/sys/i386/isa/if_wl.c @@ -1,4 +1,4 @@ -/* $Id: if_wl.c,v 1.6 1997/08/01 03:36:12 msmith Exp $ */ +/* $Id: if_wl.c,v 1.7 1997/08/02 05:19:32 msmith Exp $ */ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -935,9 +935,7 @@ wlstart(struct ifnet *ifp) * */ static int -wlread(unit, fd_p) -int unit; -u_short fd_p; +wlread(int unit, u_short fd_p) { register struct wl_softc *sc = WLSOFTC(unit); register struct ifnet *ifp = &sc->wl_if; @@ -2508,7 +2506,6 @@ wlpsacrc(u_char *buf) } return(crc); } - #ifdef WLCACHE /*