fix some ioctl sign-extension issues on 64bit platforms

Approved by:	maintainer
This commit is contained in:
Oliver Lehmann 2005-06-20 15:32:47 +00:00
parent c5fd98a6e1
commit a7c303a3e5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=137768
3 changed files with 55 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= beep-media-player PORTNAME= beep-media-player
PORTVERSION= 0.9.7 PORTVERSION= 0.9.7
PORTREVISION= 5 PORTREVISION= 7
PORTEPOCH= 1 PORTEPOCH= 1
CATEGORIES= multimedia audio CATEGORIES= multimedia audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}

View file

@ -0,0 +1,27 @@
Index: Output/OSS/mixer.c
===================================================================
RCS file: /cvsroot/beepmp/bmp/Output/OSS/mixer.c,v
retrieving revision 1.6
diff -u -r1.6 mixer.c
--- Output/OSS/mixer.c 4 Dec 2004 09:29:08 -0000 1.6
+++ Output/OSS/mixer.c 19 Jun 2005 08:11:45 -0000
@@ -50,7 +50,8 @@
void
oss_get_volume(int *l, int *r)
{
- int fd, v, cmd, devs;
+ int fd, v, devs;
+ long cmd;
gchar *devname;
devname = get_mixer_device();
@@ -81,7 +82,8 @@
void
oss_set_volume(int l, int r)
{
- int fd, v, cmd, devs;
+ int fd, v, devs;
+ long cmd;
gchar *devname;
devname = get_mixer_device();

View file

@ -0,0 +1,27 @@
Index: Output/esd/mixer.c
===================================================================
RCS file: /cvsroot/beepmp/bmp/Output/esd/mixer.c,v
retrieving revision 1.6
diff -u -r1.6 mixer.c
--- Output/esd/mixer.c 4 Dec 2004 09:29:08 -0000 1.6
+++ Output/esd/mixer.c 19 Jun 2005 08:12:02 -0000
@@ -150,7 +150,8 @@
static void
esdout_get_oss_volume(int *l, int *r)
{
- int fd, v, cmd, devs;
+ int fd, v, devs;
+ long cmd;
if (esd_cfg.use_remote)
return;
@@ -176,7 +177,8 @@
static void
esdout_set_oss_volume(int l, int r)
{
- int fd, v, cmd, devs;
+ int fd, v, devs;
+ long cmd;
if (esd_cfg.use_remote)
return;