comparison 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
comparison
equal deleted inserted replaced
229:50b89f165a34 233:0990adf580ee
617 void turn_see_off(void); 617 void turn_see_off(void);
618 void unconfuse(void); 618 void unconfuse(void);
619 char *unctrol(char ch); 619 char *unctrol(char ch);
620 void unlock_sc(void); 620 void unlock_sc(void);
621 void unsee(void); 621 void unsee(void);
622 char *vowelstr(char *str); 622 char *vowelstr(const char *str);
623 char *xcrypt(const char *key, const char *setting); 623 char *xcrypt(const char *key, const char *setting);
624 void w_wait_for(WINDOW *win, char ch); 624 void w_wait_for(WINDOW *win, char ch);
625 void wait_for(char ch); 625 void wait_for(char ch);
626 THING *wake_monster(int y, int x); 626 THING *wake_monster(int y, int x);
627 void wanderer(void); 627 void wanderer(void);