summaryrefslogtreecommitdiffstats
path: root/Include/structseq.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-11-16 16:55:29 (GMT)
committerGitHub <noreply@github.com>2019-11-16 16:55:29 (GMT)
commitbd44a7ead9f7336d7bb45f186b2b6ca0300154f7 (patch)
treef53b1af72f9a828420c251c5ecc27e20d66eaffe /Include/structseq.h
parent5fd5cb8d85fab3393dd76c7f3de1cdeb8ecf7203 (diff)
downloadcpython-bd44a7ead9f7336d7bb45f186b2b6ca0300154f7.zip
cpython-bd44a7ead9f7336d7bb45f186b2b6ca0300154f7.tar.gz
cpython-bd44a7ead9f7336d7bb45f186b2b6ca0300154f7.tar.bz2
bpo-38650: Constify PyStructSequence_UnnamedField. (GH-17005)
Make it a constant and referring to a constant string.
Diffstat (limited to 'Include/structseq.h')
-rw-r--r--Include/structseq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/structseq.h b/Include/structseq.h
index e5e5d5c..8f51c89 100644
--- a/Include/structseq.h
+++ b/Include/structseq.h
@@ -19,7 +19,7 @@ typedef struct PyStructSequence_Desc {
int n_in_sequence;
} PyStructSequence_Desc;
-extern char* PyStructSequence_UnnamedField;
+extern const char * const PyStructSequence_UnnamedField;
#ifndef Py_LIMITED_API
PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type,