From: nhmall Date: Sat, 29 Feb 2020 23:47:34 +0000 (-0500) Subject: since sole argument to set_duplicate_opt_detection was unused, eliminate it altogether X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f1be94bfa7f4452a6d5c3f726a92d58279d807a;p=nethack since sole argument to set_duplicate_opt_detection was unused, eliminate it altogether --- diff --git a/include/extern.h b/include/extern.h index 727fe791e..34d1766b2 100644 --- a/include/extern.h +++ b/include/extern.h @@ -1869,7 +1869,7 @@ E char FDECL(map_menu_cmd, (CHAR_P)); E void FDECL(show_menu_controls, (winid, BOOLEAN_P)); E void FDECL(assign_warnings, (uchar *)); E char *FDECL(nh_getenv, (const char *)); -E void FDECL(set_duplicate_opt_detection, (int)); +E void NDECL(reset_duplicate_opt_detection); E void FDECL(set_wc_option_mod_status, (unsigned long, int)); E void FDECL(set_wc2_option_mod_status, (unsigned long, int)); E void FDECL(set_option_mod_status, (const char *, int)); diff --git a/src/files.c b/src/files.c index df0a48916..e81d3645a 100644 --- a/src/files.c +++ b/src/files.c @@ -3059,7 +3059,7 @@ int src; return FALSE; /* begin detection of duplicate configfile options */ - set_duplicate_opt_detection(1); + reset_duplicate_opt_detection(); free_config_sections(); iflags.parse_config_file_src = src; @@ -3068,7 +3068,7 @@ int src; free_config_sections(); /* turn off detection of duplicate configfile options */ - set_duplicate_opt_detection(0); + reset_duplicate_opt_detection(); return rv; } diff --git a/src/options.c b/src/options.c index 596519cb4..319fdfffb 100644 --- a/src/options.c +++ b/src/options.c @@ -5788,8 +5788,7 @@ boolean val_allowed; } void -set_duplicate_opt_detection(on_or_off) -int on_or_off; +reset_duplicate_opt_detection(VOID_ARGS) { int k;