diff Python/errors.c @ 4654:df81856db58c legacy-trunk

Add const to error and newstring functions
author Guido van Rossum <guido@python.org>
date Tue, 10 Dec 1996 15:33:34 +0000
parents 65d2d8e67da3
children 00fd6857f76b
line wrap: on
line diff
--- a/Python/errors.c	Tue Dec 10 15:23:00 1996 +0000
+++ b/Python/errors.c	Tue Dec 10 15:33:34 1996 +0000
@@ -124,7 +124,7 @@
 void
 err_setstr(exception, string)
 	object *exception;
-	char *string;
+	const char *string;
 {
 	object *value = newstringobject(string);
 	err_setval(exception, value);