--- ray/src/common/savestr.c 2017/04/09 21:33:24 2.11 +++ ray/src/common/savestr.c 2023/06/08 17:48:01 2.14 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: savestr.c,v 2.11 2017/04/09 21:33:24 greg Exp $"; +static const char RCSid[] = "$Id: savestr.c,v 2.14 2023/06/08 17:48:01 greg Exp $"; #endif /* * savestr.c - routines for efficient string storage. @@ -15,15 +15,13 @@ static const char RCSid[] = "$Id: savestr.c,v 2.11 201 * frees memory associated with the string; it should * never be referenced again. * - * External symbols declared in standard.h + * External symbols declared in rtio.h */ #include "copyright.h" -#include #include -#include "rtmisc.h" #include "rterror.h" #include "rtio.h" @@ -48,7 +46,7 @@ static S_HEAD *stab[NHASH]; char * -savestr(char *str) /* save a string */ +savestr(const char *str) /* save a string */ { int hval; S_HEAD *sp; @@ -99,7 +97,7 @@ freestr(char *s) /* free a string */ int -shash(char *s) +shash(const char *s) { int h = 0;