summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/matcd
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-15 10:11:21 +0000
committerbde <bde@FreeBSD.org>1998-07-15 10:11:21 +0000
commitfab4cc71706ad7899d61db9d45d2a2605d897d49 (patch)
treea1ba964699bc34b45c71194077f97c19832fd12e /sys/i386/isa/matcd
parent0d627f2ae9aa9721a1e35fa957f3c9862ed7dc1a (diff)
downloadFreeBSD-src-fab4cc71706ad7899d61db9d45d2a2605d897d49.zip
FreeBSD-src-fab4cc71706ad7899d61db9d45d2a2605d897d49.tar.gz
The ioctl request arg is unsigned log, so don't attempt to pass it
around as signed int. Fixed printf format error for ioctl request arg hidden in ifdefed code.
Diffstat (limited to 'sys/i386/isa/matcd')
-rw-r--r--sys/i386/isa/matcd/audio.c4
-rw-r--r--sys/i386/isa/matcd/matcd.c11
2 files changed, 7 insertions, 8 deletions
diff --git a/sys/i386/isa/matcd/audio.c b/sys/i386/isa/matcd/audio.c
index b8cf6bf..a7891cb 100644
--- a/sys/i386/isa/matcd/audio.c
+++ b/sys/i386/isa/matcd/audio.c
@@ -274,7 +274,7 @@ static int matcd_stop(int ldrive, int cdrive, int controller)
-----------------------------------------------------------------------------*/
static int matcd_level(int ldrive, int cdrive, int controller,
- struct ioc_vol * level, int action)
+ struct ioc_vol * level, unsigned long action)
{
struct matcd_data *cd;
int i,z,port;
@@ -351,7 +351,7 @@ static int matcd_level(int ldrive, int cdrive, int controller,
-----------------------------------------------------------------------------*/
static int matcd_route(int ldrive, int cdrive, int controller,
- int command)
+ unsigned long command)
{
struct matcd_data *cd;
int i,port;
diff --git a/sys/i386/isa/matcd/matcd.c b/sys/i386/isa/matcd/matcd.c
index bc2beb4..adc8f8f 100644
--- a/sys/i386/isa/matcd/matcd.c
+++ b/sys/i386/isa/matcd/matcd.c
@@ -337,7 +337,7 @@ static char MATCDVERSION[]="Version 1(26) 18-Oct-95";
static char MATCDCOPYRIGHT[] = "Matsushita CD-ROM driver, Copr. 1994,1995 Frank Durda IV";
/* The proceeding strings may not be changed*/
-/* $Id: matcd.c,v 1.34 1998/06/17 13:54:58 bde Exp $ */
+/* $Id: matcd.c,v 1.35 1998/07/04 22:30:20 julian Exp $ */
/*---------------------------------------------------------------------------
Include declarations
@@ -564,11 +564,11 @@ static int matcd_pause(int ldrive, int cdrive, int controller,
int action);
static int matcd_stop(int ldrive, int cdrive, int controller);
static int matcd_level(int ldrive, int cdrive, int controller,
- struct ioc_vol * volume, int action);
+ struct ioc_vol * volume, unsigned long action);
static int matcd_patch(int ldrive, int cdrive, int controller,
struct ioc_patch * routing);
static int matcd_route(int ldrive, int cdrive, int controller,
- int command);
+ unsigned long command);
static int matcd_pitch(int ldrive, int cdrive, int controller,
struct ioc_pitch * speed);
#endif /*FULLDRIVER*/
@@ -1007,7 +1007,7 @@ int matcdioctl(dev_t dev, u_long command, caddr_t addr,
port=cd->iobase;
#ifdef DEBUGIOCTL
- printf("matcd%d: ioctl %x cdrive %x parms ",ldrive,command,cdrive);
+ printf("matcd%d: ioctl %lx cdrive %x parms ",ldrive,command,cdrive);
for (i=0;i<10;i++) {
printf("%02x ",(unsigned int)addr[i]);
}
@@ -1089,8 +1089,7 @@ int matcdioctl(dev_t dev, u_long command, caddr_t addr,
case CDIOCSETLEFT: /*<12>0 -> L&R 1 -> NULL*/
case CDIOCSETRIGHT: /*<12>0 -> NULL 1 -> L&R*/
/*<12>Adjust audio routing*/
- return(matcd_route(ldrive, cdrive, controller,
- command));
+ return(matcd_route(ldrive, cdrive, controller, command));
case CDIOCSETPATCH: /*<12>Allow precise routing*/
return(matcd_patch(ldrive, cdrive, controller,
OpenPOWER on IntegriCloud