diff options
author | pi <pi@FreeBSD.org> | 2016-05-04 13:49:34 +0800 |
---|---|---|
committer | pi <pi@FreeBSD.org> | 2016-05-04 13:49:34 +0800 |
commit | 6c57254be4d27e69c8ba0798821863e25b164493 (patch) | |
tree | c37a2a709ab4f0c8e2c63dea7287681a5f6c88eb /audio/umix/files | |
parent | 4aab43816d4185019236a1255cebead6b17c6665 (diff) | |
download | freebsd-ports-gnome-6c57254be4d27e69c8ba0798821863e25b164493.tar.gz freebsd-ports-gnome-6c57254be4d27e69c8ba0798821863e25b164493.tar.zst freebsd-ports-gnome-6c57254be4d27e69c8ba0798821863e25b164493.zip |
audio/umix: fix the "ioctl sign-extension ioctl ffffffffc0044d00" warning
PR: 209227
Submitted by: trasz
Diffstat (limited to 'audio/umix/files')
-rw-r--r-- | audio/umix/files/patch-src__driver_oss.c | 14 | ||||
-rw-r--r-- | audio/umix/files/patch-src_error.c | 11 | ||||
-rw-r--r-- | audio/umix/files/patch-src_error.h | 11 |
3 files changed, 29 insertions, 7 deletions
diff --git a/audio/umix/files/patch-src__driver_oss.c b/audio/umix/files/patch-src__driver_oss.c index d7a1340b3dce..22c8776cc6e7 100644 --- a/audio/umix/files/patch-src__driver_oss.c +++ b/audio/umix/files/patch-src__driver_oss.c @@ -1,5 +1,5 @@ ---- src/driver_oss.c.orig Sun Aug 31 15:32:02 2003 -+++ src/driver_oss.c Tue Feb 20 22:44:43 2007 +--- src/driver_oss.c.orig 2003-08-31 13:32:02 UTC ++++ src/driver_oss.c @@ -27,7 +27,7 @@ #if defined(__linux__) #include <sys/soundcard.h> @@ -9,7 +9,7 @@ #elif defined(__NetBSD__) #include <soundcard.h> #endif -@@ -253,8 +253,10 @@ +@@ -253,8 +253,10 @@ int oss_open(const char *path) * oss_open() before initializing. */ int oss_init(void) { @@ -20,7 +20,7 @@ int old_mixer; int ch; int i; -@@ -288,9 +290,13 @@ +@@ -288,9 +290,13 @@ int oss_init(void) mixer_ptr->numchan = SOUND_MIXER_NRDEVICES; mixer_ptr->numchan = CLAMP(mixer_ptr->numchan,0,SOUND_MIXER_NRDEVICES); @@ -34,7 +34,7 @@ mixer_ptr->curr_chan = 0; #ifdef UMIX_DEBUG -@@ -329,9 +335,11 @@ +@@ -329,9 +335,11 @@ int oss_init(void) oss_set_curr_chan(i); oss_update(OSS_UPD_READ); } @@ -46,7 +46,7 @@ #ifdef UMIX_DEBUG err_msg("oss_init: initialized #%d with %d channels", -@@ -388,6 +396,7 @@ +@@ -388,6 +396,7 @@ int oss_opt_to_chan_num(const char *str) * the device and compares it to the old */ static int oss_check_update(void) { @@ -54,7 +54,7 @@ struct mixer_info oss_info; eioctl(mixer_ptr->fd, SOUND_MIXER_INFO, &oss_info); -@@ -396,6 +405,7 @@ +@@ -396,6 +405,7 @@ static int oss_check_update(void) mixer_ptr->modifycount = oss_info.modify_counter; return 1; } diff --git a/audio/umix/files/patch-src_error.c b/audio/umix/files/patch-src_error.c new file mode 100644 index 000000000000..94f1dce52998 --- /dev/null +++ b/audio/umix/files/patch-src_error.c @@ -0,0 +1,11 @@ +--- src/error.c.orig 2016-05-03 08:56:24 UTC ++++ src/error.c +@@ -54,7 +54,7 @@ static void error_handler(int strflag, c + fflush(stderr); + } + +-int eioctl(int fd, int request, void *arg) ++int eioctl(int fd, unsigned long request, void *arg) + { + int n; + diff --git a/audio/umix/files/patch-src_error.h b/audio/umix/files/patch-src_error.h new file mode 100644 index 000000000000..e2633ca475ec --- /dev/null +++ b/audio/umix/files/patch-src_error.h @@ -0,0 +1,11 @@ +--- src/error.h.orig 2016-05-03 08:56:07 UTC ++++ src/error.h +@@ -24,7 +24,7 @@ + #ifndef MY_ERROR_H + #define MY_ERROR_H + +-int eioctl(int fd, int request, void *arg); ++int eioctl(int fd, unsigned long request, void *arg); + void *emalloc(size_t size); + void *erealloc(void *ptr, size_t size); + char *estrdup(const char *str); |