diff rogue4/rogue.h @ 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 b67b99f6c92b
children 2dcf10d45d5b
line wrap: on
line diff
--- a/rogue4/rogue.h	Sun Mar 06 14:45:18 2016 -0500
+++ b/rogue4/rogue.h	Sun Mar 06 19:32:47 2016 -0500
@@ -619,7 +619,7 @@
 char   *unctrol(char ch);
 void    unlock_sc(void);
 void    unsee(void);
-char   *vowelstr(char *str);
+char   *vowelstr(const char *str);
 char   *xcrypt(const char *key, const char *setting);
 void    w_wait_for(WINDOW *win, char ch);
 void    wait_for(char ch);