summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/lpt.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1993-11-25 01:38:01 +0000
committerwollman <wollman@FreeBSD.org>1993-11-25 01:38:01 +0000
commit8e24073a9b2dcc5fd2bcd719dd679f029d4818cb (patch)
tree5f254571daeb319e5d462e9932f7aff4e6b7ee40 /sys/i386/isa/lpt.c
parent5465ba6a252350e2c96e04cb61af6d77a3d8d66e (diff)
downloadFreeBSD-src-8e24073a9b2dcc5fd2bcd719dd679f029d4818cb.zip
FreeBSD-src-8e24073a9b2dcc5fd2bcd719dd679f029d4818cb.tar.gz
Make the LINT kernel compile with -W -Wreturn-type -Wcomment -Werror, and
add same (sans -Werror) to Makefile for future compilations.
Diffstat (limited to 'sys/i386/isa/lpt.c')
-rw-r--r--sys/i386/isa/lpt.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/sys/i386/isa/lpt.c b/sys/i386/isa/lpt.c
index 6d65d8a..ea5c6ae 100644
--- a/sys/i386/isa/lpt.c
+++ b/sys/i386/isa/lpt.c
@@ -46,7 +46,7 @@
* SUCH DAMAGE.
*
* from: unknown origin, 386BSD 0.1
- * $Id$
+ * $Id: lpt.c,v 1.5 1993/10/16 13:46:10 rgrimes Exp $
*/
/*
@@ -77,7 +77,7 @@
#define BUFSIZE 1024
#ifndef DEBUG
-#define lprintf
+#define lprintf (void)
#else
#define lprintf if (lptflag) printf
int lptflag = 1;
@@ -281,7 +281,8 @@ lprintf ("status %x\n", inb(port+lpt_status) );
}
/* wait 1/4 second, give up if we get a signal */
- if (tsleep (sc, LPPRI|PCATCH, "lptinit", hz/4) != EWOULDBLOCK) {
+ if (tsleep ((caddr_t)sc, LPPRI|PCATCH, "lptinit",
+ hz/4) != EWOULDBLOCK) {
sc->sc_state = 0;
splx(s);
return (EBUSY);
@@ -303,7 +304,7 @@ lprintf ("status %x\n", inb(port+lpt_status) );
sc->sc_inbuf = geteblk(BUFSIZE);
sc->sc_xfercnt = 0;
splx(s);
- timeout (lptout, sc, hz/2);
+ timeout (lptout, (caddr_t)sc, hz/2);
lprintf("opened.\n");
return(0);
}
@@ -315,7 +316,7 @@ lptout (sc)
lprintf ("T %x ", inb(sc->sc_port+lpt_status));
if (sc->sc_state&OPEN)
- timeout (lptout, sc, hz/2);
+ timeout (lptout, (caddr_t)sc, hz/2);
else sc->sc_state &= ~TOUT;
if (sc->sc_state & ERROR)
@@ -350,7 +351,8 @@ lptclose(dev, flag)
while ((inb(port+lpt_status) & (LPS_SEL|LPS_OUT|LPS_NBSY|LPS_NERR)) !=
(LPS_SEL|LPS_NBSY|LPS_NERR) || sc->sc_xfercnt)
/* wait 1/4 second, give up if we get a signal */
- if (tsleep (sc, LPPRI|PCATCH, "lpclose", hz) != EWOULDBLOCK)
+ if (tsleep ((caddr_t)sc, LPPRI|PCATCH,
+ "lpclose", hz) != EWOULDBLOCK)
break;
sc->sc_state = 0;
@@ -388,7 +390,8 @@ lprintf("\nC %d. ", sc->sc_xfercnt);
(void) splx(pl);
}
lprintf("W ");
- if (err = tsleep (sc, LPPRI|PCATCH, "lpwrite", 0))
+ if (err = tsleep ((caddr_t)sc, LPPRI|PCATCH,
+ "lpwrite", 0))
return(err);
}
}
OpenPOWER on IntegriCloud