From: Patric Mueller Date: Wed, 19 Feb 2020 00:41:35 +0000 (+0100) Subject: Remove left over NH_DEVEL_STATUS bits from makedefs.c X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16d32b300262cdf7e01813da98c4c592b87cef2d;p=nethack Remove left over NH_DEVEL_STATUS bits from makedefs.c Left bits from previous version info code caused compilation errors if NH_DEVEL_STATUS was not set to NH_STATUS_WIP. --- diff --git a/util/makedefs.c b/util/makedefs.c index 664cf6c62..4b48acbf4 100644 --- a/util/makedefs.c +++ b/util/makedefs.c @@ -1059,10 +1059,6 @@ rumors_failure: exit(EXIT_FAILURE); } -#if (NH_DEVEL_STATUS == NH_STATUS_WIP) -#else - Strcat(subbuf, " post-release"); -#endif void do_date() { @@ -1269,7 +1265,7 @@ char *githash, *gitbranch; *strval++ = '\0'; /* strip off the '\n' */ if ((c = index(strval, '\n')) != 0) - *c = '\0'; + *c = '\0'; if ((c = index(opt, '\n')) != 0) *c = '\0'; /* strip leading and trailing white space */ @@ -1365,10 +1361,6 @@ windowing_sanity() #endif /*DEFAULT_WINDOW_SYS*/ } -#if (NH_DEVEL_STATUS == NH_STATUS_WIP) -#else - " [post-release]" -#endif /* routine to decide whether to discard something from data.base */ static boolean d_filter(line)