[Python-checkins] bpo-39582: ossaudiodev module update helpers signature for ioctl calls. (GH-18412)

David CARLIER webhook-mailer at python.org
Sat Mar 14 09:49:00 EDT 2020


https://github.com/python/cpython/commit/b81f40f0adae3b1d1e57f9a89940ba827b9ede70
commit: b81f40f0adae3b1d1e57f9a89940ba827b9ede70
branch: master
author: David CARLIER <devnexen at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-03-14T15:48:56+02:00
summary:

bpo-39582: ossaudiodev module update helpers signature for ioctl calls. (GH-18412)

files:
M Modules/ossaudiodev.c

diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c
index c94ba9255acdc..0711d519b5cb6 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;



More information about the Python-checkins mailing list