diff options
author | Guido van Rossum <guido@python.org> | 1996-12-10 15:33:34 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-12-10 15:33:34 +0000 |
commit | 067998f35ec3013e9a55aad29f0e3dbe4560d11c (patch) | |
tree | 482d92ddc8fc1be73bd43d6dcac7f11fc0f4aa58 /Objects/stringobject.c | |
parent | 36dd0d27c4916dbe67545d3bcb18df06825fbb26 (diff) | |
download | cpython-git-067998f35ec3013e9a55aad29f0e3dbe4560d11c.tar.gz |
Add const to error and newstring functions
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r-- | Objects/stringobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index b880891d9a..048b83cd68 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -69,7 +69,7 @@ static stringobject *nullstring; */ object * newsizedstringobject(str, size) - char *str; + const char *str; int size; { register stringobject *op; @@ -116,7 +116,7 @@ newsizedstringobject(str, size) object * newstringobject(str) - char *str; + const char *str; { register unsigned int size = strlen(str); register stringobject *op; |