Add const to error and newstring functions

This commit is contained in:
Guido van Rossum 1996-12-10 15:33:34 +00:00
parent 36dd0d27c4
commit 067998f35e
4 changed files with 6 additions and 6 deletions

View file

@ -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;