[Python-checkins] bpo-39582: ossaudiodev module update helpers signature for ioctl calls. (GH-18412)
Miss Islington (bot)
webhook-mailer at python.org
Sat Mar 14 10:43:57 EDT 2020
https://github.com/python/cpython/commit/9644702936a5758b99bd951446a5b0ef05ec022a
commit: 9644702936a5758b99bd951446a5b0ef05ec022a
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-03-14T07:43:53-07:00
summary:
bpo-39582: ossaudiodev module update helpers signature for ioctl calls. (GH-18412)
(cherry picked from commit b81f40f0adae3b1d1e57f9a89940ba827b9ede70)
Co-authored-by: David CARLIER <devnexen at gmail.com>
files:
M Modules/ossaudiodev.c
diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c
index affaf1d9680be..f7712d97c2d72 100644
--- a/Modules/ossaudiodev.c
+++ b/Modules/ossaudiodev.c
@@ -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;
More information about the Python-checkins
mailing list