summaryrefslogtreecommitdiff
path: root/Modules/ossaudiodev.c
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2020-03-14 13:48:56 +0000
committerGitHub <noreply@github.com>2020-03-14 15:48:56 +0200
commitb81f40f0adae3b1d1e57f9a89940ba827b9ede70 (patch)
treef1a92aca7264beba3c0bf5d84d4820118974cbbd /Modules/ossaudiodev.c
parent57c781048915e45d15eaa348c51ec01b12cc170a (diff)
downloadcpython-git-b81f40f0adae3b1d1e57f9a89940ba827b9ede70.tar.gz
bpo-39582: ossaudiodev module update helpers signature for ioctl calls. (GH-18412)
Diffstat (limited to 'Modules/ossaudiodev.c')
-rw-r--r--Modules/ossaudiodev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c
index c94ba9255a..0711d519b5 100644
--- a/Modules/ossaudiodev.c
+++ b/Modules/ossaudiodev.c
@@ -240,7 +240,7 @@ static int _is_fd_valid(int fd)
arg = dsp.xxx(arg)
*/
static PyObject *
-_do_ioctl_1(int fd, PyObject *args, char *fname, int cmd)
+_do_ioctl_1(int fd, PyObject *args, char *fname, unsigned long cmd)
{
char argfmt[33] = "i:";
int arg;
@@ -265,7 +265,7 @@ _do_ioctl_1(int fd, PyObject *args, char *fname, int cmd)
way.
*/
static PyObject *
-_do_ioctl_1_internal(int fd, PyObject *args, char *fname, int cmd)
+_do_ioctl_1_internal(int fd, PyObject *args, char *fname, unsigned long cmd)
{
char argfmt[32] = ":";
int arg = 0;
@@ -285,7 +285,7 @@ _do_ioctl_1_internal(int fd, PyObject *args, char *fname, int cmd)
/* _do_ioctl_0() is a private helper for the no-argument ioctls:
SNDCTL_DSP_{SYNC,RESET,POST}. */
static PyObject *
-_do_ioctl_0(int fd, PyObject *args, char *fname, int cmd)
+_do_ioctl_0(int fd, PyObject *args, char *fname, unsigned long cmd)
{
char argfmt[32] = ":";
int rv;