From 75c66a120a1ca214e8f3364ed3b5b64d02570dd3 Mon Sep 17 00:00:00 2001 From: John Hay Date: Thu, 31 Oct 1996 20:22:40 +0000 Subject: if_sr.c corrupted the global variable `ticks'. Cosmetic changes: if_sr_.c won't compile with a K&R compiler, so there is no need to cast the timeout arg to the (wrong) type. Submitted by: bde --- sys/dev/sr/if_sr.c | 16 +++++----------- sys/dev/sr/if_sr_isa.c | 16 +++++----------- 2 files changed, 10 insertions(+), 22 deletions(-) (limited to 'sys/dev/sr') diff --git a/sys/dev/sr/if_sr.c b/sys/dev/sr/if_sr.c index 659a17ff58bf0..f41d76079e5f3 100644 --- a/sys/dev/sr/if_sr.c +++ b/sys/dev/sr/if_sr.c @@ -27,7 +27,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_sr.c,v 1.2 1996/09/06 23:07:44 phk Exp $ + * $Id: if_sr.c,v 1.3 1996/10/29 03:52:51 jhay Exp $ */ /* @@ -60,28 +60,23 @@ #include #include #include -#include +#include #include -#include -#include -#include -#include #include -#include #include #if NBPFILTER > 0 #include -#include #endif -#include #include #include #include +#include "ioconf.h" + /* #define USE_MODEMCK */ #ifndef BUGGY @@ -2915,8 +2910,7 @@ sr_modemck(void *arg) /* * OK, now set up for the next modem signal checking pass... */ - ticks = 1 * hz; /* use 1 second granularity */ - timeout(sr_modemck, (caddr_t)0, ticks); + timeout(sr_modemck, NULL, hz); splx(s); } diff --git a/sys/dev/sr/if_sr_isa.c b/sys/dev/sr/if_sr_isa.c index 659a17ff58bf0..f41d76079e5f3 100644 --- a/sys/dev/sr/if_sr_isa.c +++ b/sys/dev/sr/if_sr_isa.c @@ -27,7 +27,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_sr.c,v 1.2 1996/09/06 23:07:44 phk Exp $ + * $Id: if_sr.c,v 1.3 1996/10/29 03:52:51 jhay Exp $ */ /* @@ -60,28 +60,23 @@ #include #include #include -#include +#include #include -#include -#include -#include -#include #include -#include #include #if NBPFILTER > 0 #include -#include #endif -#include #include #include #include +#include "ioconf.h" + /* #define USE_MODEMCK */ #ifndef BUGGY @@ -2915,8 +2910,7 @@ sr_modemck(void *arg) /* * OK, now set up for the next modem signal checking pass... */ - ticks = 1 * hz; /* use 1 second granularity */ - timeout(sr_modemck, (caddr_t)0, ticks); + timeout(sr_modemck, NULL, hz); splx(s); } -- cgit v1.3