summaryrefslogtreecommitdiffstats
path: root/sys/dev/sr/if_sr_isa.c
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>1996-10-31 20:22:40 +0000
committerjhay <jhay@FreeBSD.org>1996-10-31 20:22:40 +0000
commit24d5f5f54cca5c6ae18ce6b44d508cafad3d4aeb (patch)
tree9ab314f4a66bcd5422165265d7036f20a7f65215 /sys/dev/sr/if_sr_isa.c
parent3029e93724ecfbddd852dbe1fa155b88ab47ba16 (diff)
downloadFreeBSD-src-24d5f5f54cca5c6ae18ce6b44d508cafad3d4aeb.zip
FreeBSD-src-24d5f5f54cca5c6ae18ce6b44d508cafad3d4aeb.tar.gz
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
Diffstat (limited to 'sys/dev/sr/if_sr_isa.c')
-rw-r--r--sys/dev/sr/if_sr_isa.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/sys/dev/sr/if_sr_isa.c b/sys/dev/sr/if_sr_isa.c
index 659a17f..f41d760 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 <sys/systm.h>
#include <sys/kernel.h>
#include <sys/mbuf.h>
-#include <sys/ioctl.h>
+#include <sys/sockio.h>
#include <sys/socket.h>
-#include <sys/conf.h>
-#include <sys/errno.h>
-#include <sys/malloc.h>
-#include <sys/syslog.h>
#include <net/if.h>
-#include <net/if_types.h>
#include <net/if_sppp.h>
#if NBPFILTER > 0
#include <net/bpf.h>
-#include <net/bpfdesc.h>
#endif
-#include <machine/clock.h>
#include <machine/md_var.h>
#include <i386/isa/if_srregs.h>
#include <i386/isa/ic/hd64570.h>
+#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);
}
OpenPOWER on IntegriCloud