]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39582: ossaudiodev module update helpers signature for ioctl calls. (GH-18412)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 14 Mar 2020 14:43:47 +0000 (07:43 -0700)
committerGitHub <noreply@github.com>
Sat, 14 Mar 2020 14:43:47 +0000 (07:43 -0700)
(cherry picked from commit b81f40f0adae3b1d1e57f9a89940ba827b9ede70)

Co-authored-by: David CARLIER <devnexen@gmail.com>
Modules/ossaudiodev.c

index 150a14eb388a951b1701045aafb73776a4cf792d..31864040e730da2fd9989d288074c7a290648b26 100644 (file)
@@ -242,7 +242,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;
@@ -267,7 +267,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;
@@ -287,7 +287,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;