bpo-39582: ossaudiodev module update helpers signature for ioctl calls. (GH-18412)
This commit is contained in:
parent
57c7810489
commit
b81f40f0ad
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue