From 0b1e975b079913c3925993130fbc370be643ed36 Mon Sep 17 00:00:00 2001 From: Bart House Date: Tue, 20 Nov 2018 10:35:25 -0800 Subject: [PATCH] Addressed compiler warnings. Moved locals before code. Changed comment type. --- win/curses/cursdial.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/win/curses/cursdial.c b/win/curses/cursdial.c index 274710db1..48ac91535 100644 --- a/win/curses/cursdial.c +++ b/win/curses/cursdial.c @@ -80,6 +80,10 @@ curses_line_input_dialog(const char *prompt, char *answer, int buffer) { int map_height, map_width, maxwidth, remaining_buf, winx, winy, count; WINDOW *askwin, *bwin; + char *tmpstr; + int prompt_width = strlen(prompt) + buffer + 1; + int prompt_height = 1; + int height = prompt_height; #if __STDC_VERSION__ >= 199901L char input[buffer]; #else @@ -90,10 +94,6 @@ curses_line_input_dialog(const char *prompt, char *answer, int buffer) buffer = BUFSZ - 1; #endif - char *tmpstr; - int prompt_width = strlen(prompt) + buffer + 1; - int prompt_height = 1; - int height = prompt_height; maxwidth = term_cols - 2; @@ -869,7 +869,7 @@ menu_win_size(nhmenu *menu) } else { /* Add space for accelerator */ curentrywidth = strlen(menu_item_ptr->str) + 4; -#if 0 // FIXME: menu glyphs +#if 0 /* FIXME: menu glyphs */ if (menu_item_ptr->glyph != NO_GLYPH && iflags.use_menu_glyphs) curentrywidth += 2; -- 2.40.0