diff rogue4/misc.c @ 233:0990adf580ee

Declare some function arguments as const. Some functions, mostly in fight.c, declared variables as pointers to const char but passed them to functions that took pointers to ordinary char. The strings did not actually get modified, so adding 'const' to the function definitions removed the warnings.
author John "Elwin" Edwards
date Sun, 06 Mar 2016 19:32:47 -0500
parents 1b73a8641b37
children 0250220d8cdd
line wrap: on
line diff
--- a/rogue4/misc.c	Sun Mar 06 14:45:18 2016 -0500
+++ b/rogue4/misc.c	Sun Mar 06 19:32:47 2016 -0500
@@ -345,7 +345,7 @@
  *	"an".
  */
 char *
-vowelstr(char *str)
+vowelstr(const char *str)
 {
     switch (*str)
     {