From cd53a51ad65e5562f886f36d7692908ed881bbab Mon Sep 17 00:00:00 2001 From: Stefan Fiedler Date: Fri, 4 Nov 2005 17:37:38 +0000 Subject: [PATCH] Stefan Fiedler: misc/rockdialog/: change types of two variables from unsigned char* to char* so gcc40 does not show ugly-looking warnings when running ./scripts/Config. Index: misc/rockdialog/inputbox.c =================================================================== [2005103006075420743] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@6619 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- misc/rockdialog/dialog.h | 2 +- misc/rockdialog/inputbox.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/rockdialog/dialog.h b/misc/rockdialog/dialog.h index cdf52ee58..aaf02e787 100644 --- a/misc/rockdialog/dialog.h +++ b/misc/rockdialog/dialog.h @@ -160,7 +160,7 @@ int dialog_menu (const char *title, const char *prompt, int height, int width, int dialog_checklist (const char *title, const char *prompt, int height, int width, int list_height, int item_no, const char * const * items, int flag); -extern unsigned char dialog_input_result[]; +extern char dialog_input_result[]; int dialog_inputbox (const char *title, const char *prompt, int height, int width, const char *init); diff --git a/misc/rockdialog/inputbox.c b/misc/rockdialog/inputbox.c index 66bba74ae..d7edfe9a7 100644 --- a/misc/rockdialog/inputbox.c +++ b/misc/rockdialog/inputbox.c @@ -22,7 +22,7 @@ #include "dialog.h" -unsigned char dialog_input_result[MAX_LEN + 1]; +char dialog_input_result[MAX_LEN + 1]; /* * Print the termination buttons @@ -49,7 +49,7 @@ dialog_inputbox (const char *title, const char *prompt, int height, int width, { int i, x, y, box_y, box_x, box_width; int input_x = 0, scroll = 0, key = 0, button = -1; - unsigned char *instr = dialog_input_result; + char *instr = dialog_input_result; WINDOW *dialog; /* center dialog box on screen */