mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
More unconsting.
This commit is contained in:
parent
f4e6928c4d
commit
02cbf4ae4b
9 changed files with 56 additions and 62 deletions
|
@ -874,7 +874,7 @@ new_mmap_object(PyObject *self, PyObject *args, PyObject *kwdict)
|
|||
int fd, flags = MAP_SHARED, prot = PROT_WRITE | PROT_READ;
|
||||
int devzero = -1;
|
||||
int access = (int)ACCESS_DEFAULT;
|
||||
static const char *keywords[] = {"fileno", "length",
|
||||
static char *keywords[] = {"fileno", "length",
|
||||
"flags", "prot",
|
||||
"access", NULL};
|
||||
|
||||
|
@ -992,7 +992,7 @@ new_mmap_object(PyObject *self, PyObject *args, PyObject *kwdict)
|
|||
HANDLE fh = 0;
|
||||
int access = (access_mode)ACCESS_DEFAULT;
|
||||
DWORD flProtect, dwDesiredAccess;
|
||||
static const char *keywords[] = { "fileno", "length",
|
||||
static char *keywords[] = { "fileno", "length",
|
||||
"tagname",
|
||||
"access", NULL };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue