mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #25923: Added more const qualifiers to signatures of static and private functions.
This commit is contained in:
parent
2d06e84455
commit
ef1585eb9a
60 changed files with 210 additions and 191 deletions
|
|
@ -540,7 +540,7 @@ err_closed(void)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
err_mode(char *action)
|
||||
err_mode(const char *action)
|
||||
{
|
||||
_PyIO_State *state = IO_STATE();
|
||||
if (state != NULL)
|
||||
|
|
@ -1043,7 +1043,7 @@ _io_FileIO_truncate_impl(fileio *self, PyObject *posobj)
|
|||
}
|
||||
#endif /* HAVE_FTRUNCATE */
|
||||
|
||||
static char *
|
||||
static const char *
|
||||
mode_string(fileio *self)
|
||||
{
|
||||
if (self->created) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue