some lint cleanup
Building with an old version of gcc with various warnings enabled generated a lot of noise. Most of it was due to not guarding string literals with `const', but there were a couple of actual problems too.
This commit is contained in:
@@ -1379,7 +1379,7 @@ E void FDECL(assign_warnings, (uchar *));
|
||||
E char *FDECL(nh_getenv, (const char *));
|
||||
E void FDECL(set_duplicate_opt_detection, (int));
|
||||
E void FDECL(set_wc_option_mod_status, (unsigned long, int));
|
||||
E void FDECL(set_option_mod_status, (char *, int));
|
||||
E void FDECL(set_option_mod_status, (const char *,int));
|
||||
|
||||
/* ### pager.c ### */
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)winprocs.h 3.4 1996/02/18 */
|
||||
/* SCCS Id: @(#)winprocs.h 3.4 2003/01/08 */
|
||||
/* Copyright (c) David Cohrs, 1992 */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -202,7 +202,7 @@ extern NEARDATA struct window_procs windowprocs;
|
||||
#endif
|
||||
|
||||
struct wc_Opt {
|
||||
char *wc_name;
|
||||
const char *wc_name;
|
||||
unsigned long wc_bit;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user