summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-12-10 15:33:34 (GMT)
committerGuido van Rossum <guido@python.org>1996-12-10 15:33:34 (GMT)
commit067998f35ec3013e9a55aad29f0e3dbe4560d11c (patch)
tree482d92ddc8fc1be73bd43d6dcac7f11fc0f4aa58 /Objects/stringobject.c
parent36dd0d27c4916dbe67545d3bcb18df06825fbb26 (diff)
downloadcpython-067998f35ec3013e9a55aad29f0e3dbe4560d11c.zip
cpython-067998f35ec3013e9a55aad29f0e3dbe4560d11c.tar.gz
cpython-067998f35ec3013e9a55aad29f0e3dbe4560d11c.tar.bz2
Add const to error and newstring functions
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index b880891..048b83c 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;