diff options
Diffstat (limited to 'src/LYCurses.c')
-rw-r--r-- | src/LYCurses.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/LYCurses.c b/src/LYCurses.c index 5095c1ee..9221ff82 100644 --- a/src/LYCurses.c +++ b/src/LYCurses.c @@ -525,11 +525,11 @@ void wcurses_css(WINDOW * win, char *name, CTRACE2(TRACE_STYLE, (tfp, "CSSTRIM:trying to set [%s] style - ", name)); if (tmpHash == NOSTYLE) { - char *class = strrchr(name, '.'); + char *pclass = strrchr(name, '.'); - CTRACE2(TRACE_STYLE, (tfp, "undefined, trimming at %p\n", class)); - if (class) - *class = '\0'; + CTRACE2(TRACE_STYLE, (tfp, "undefined, trimming at %p\n", pclass)); + if (pclass) + *pclass = '\0'; else try_again = 0; } else { @@ -1397,6 +1397,11 @@ void stop_curses(void) } #ifdef VMS + +#ifdef USE_SLANG +extern void longname(char *, char *); +#endif /* USE_SLANG */ + /* * Check terminal type, start curses & setup terminal. */ @@ -1406,10 +1411,6 @@ BOOLEAN setup(char *terminal) int status; char *dummy = 0, *cp, term[81]; -#ifdef USE_SLANG - extern void longname(); -#endif /* USE_SLANG */ - /* * If the display was not set by a command line option then see if it is * available from the environment. |