summaryrefslogtreecommitdiffstats
path: root/sys/dev/si
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-16 00:57:07 +0000
committerbde <bde@FreeBSD.org>1998-08-16 00:57:07 +0000
commit0277aae3504e6e7ad4e34f95082b553313dd607e (patch)
tree85e83f37241e6afc17f7bad08ed9a6cd4251bc8e /sys/dev/si
parentbdc9587444e80da058bd5bd253c2724f715865f5 (diff)
downloadFreeBSD-src-0277aae3504e6e7ad4e34f95082b553313dd607e.zip
FreeBSD-src-0277aae3504e6e7ad4e34f95082b553313dd607e.tar.gz
Fixed yet more ioctl breakage due to the type of the `cmd' arg chaninging
from int to u_long but not changing here.
Diffstat (limited to 'sys/dev/si')
-rw-r--r--sys/dev/si/si.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c
index 96c555b..81430ff 100644
--- a/sys/dev/si/si.c
+++ b/sys/dev/si/si.c
@@ -30,7 +30,7 @@
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
* NO EVENT SHALL THE AUTHORS BE LIABLE.
*
- * $Id: si.c,v 1.72 1998/06/10 12:49:54 phk Exp $
+ * $Id: si.c,v 1.73 1998/06/13 19:36:22 steve Exp $
*/
#ifndef lint
@@ -110,7 +110,7 @@ enum si_mctl { GET, SET, BIS, BIC };
static void si_command __P((struct si_port *, int, int));
static int si_modem __P((struct si_port *, enum si_mctl, int));
static void si_write_enable __P((struct si_port *, int));
-static int si_Sioctl __P((dev_t, int, caddr_t, int, struct proc *));
+static int si_Sioctl __P((dev_t, u_long, caddr_t, int, struct proc *));
static void si_start __P((struct tty *));
static timeout_t si_lstart;
static void si_disc_optim __P((struct tty *tp, struct termios *t,
@@ -1493,7 +1493,7 @@ siioctl(dev, cmd, data, flag, p)
int oldspl;
int blocked = 0;
#if defined(COMPAT_43)
- int oldcmd;
+ u_long oldcmd;
struct termios term;
#endif
@@ -1503,7 +1503,7 @@ siioctl(dev, cmd, data, flag, p)
pp = MINOR2PP(mynor);
tp = pp->sp_tty;
- DPRINT((pp, DBG_ENTRY|DBG_IOCTL, "siioctl(%x,%x,%x,%x)\n",
+ DPRINT((pp, DBG_ENTRY|DBG_IOCTL, "siioctl(%x,%lx,%x,%x)\n",
dev, cmd, data, flag));
if (IS_STATE(mynor)) {
struct termios *ct;
@@ -1657,7 +1657,7 @@ out:
* Handle the Specialix ioctls. All MUST be called via the CONTROL device
*/
static int
-si_Sioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
+si_Sioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
{
struct si_softc *xsc;
register struct si_port *xpp;
@@ -1669,7 +1669,7 @@ si_Sioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
int card, port;
int mynor = minor(dev);
- DPRINT((0, DBG_ENTRY|DBG_IOCTL, "si_Sioctl(%x,%x,%x,%x)\n",
+ DPRINT((0, DBG_ENTRY|DBG_IOCTL, "si_Sioctl(%x,%lx,%x,%x)\n",
dev, cmd, data, flag));
#if 1
OpenPOWER on IntegriCloud