From cde1ee8fa147dfd15dc5c5b43093cd8c8a402b74 Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Wed, 16 Jan 2008 21:54:11 +0000 Subject: 0.41-0 test 11 svn path=/trunk/; revision=9147 --- pd/src/m_class.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pd/src/m_class.c') diff --git a/pd/src/m_class.c b/pd/src/m_class.c index 622fbd2d..ab0b86be 100644 --- a/pd/src/m_class.c +++ b/pd/src/m_class.c @@ -459,12 +459,12 @@ t_propertiesfn class_getpropertiesfn(t_class *c) static t_symbol *symhash[HASHSIZE]; -t_symbol *dogensym(char *s, t_symbol *oldsym) +t_symbol *dogensym(const char *s, t_symbol *oldsym) { t_symbol **sym1, *sym2; unsigned int hash1 = 0, hash2 = 0; int length = 0; - char *s2 = s; + const char *s2 = s; while (*s2) { hash1 += *s2; @@ -491,7 +491,7 @@ t_symbol *dogensym(char *s, t_symbol *oldsym) return (sym2); } -t_symbol *gensym(char *s) +t_symbol *gensym(const char *s) { return(dogensym(s, 0)); } -- cgit v1.2.1