diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-09-12 05:56:42 +0000 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2007-09-12 05:56:42 +0000 |
commit | 0c1a521ce5da7372aaeb9a58ca55b43ba94611b8 (patch) | |
tree | 8e393e37e222de5c53c5672cbc51b8a28cd936e3 /package/config/lxdialog/inputbox.c | |
parent | 079929e7647e9e7b327e215ef1fba6856a68bf67 (diff) |
Watching all the warnings on package/config finally got to me.
A patch that clears the gcc warnings from config with cast changes only.
thanks, I feel better now,
Rick Foos <rick@synchromeshcomputing.com>
Diffstat (limited to 'package/config/lxdialog/inputbox.c')
-rw-r--r-- | package/config/lxdialog/inputbox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/config/lxdialog/inputbox.c b/package/config/lxdialog/inputbox.c index 05e72066b..fe523b8ce 100644 --- a/package/config/lxdialog/inputbox.c +++ b/package/config/lxdialog/inputbox.c @@ -52,7 +52,7 @@ int dialog_inputbox(const char *title, const char *prompt, int height, int width if (!init) instr[0] = '\0'; else - strcpy(instr, init); + strcpy((char *)instr, init); do_resize: if (getmaxy(stdscr) <= (height - 2)) @@ -105,7 +105,7 @@ do_resize: for (i = 0; i < box_width - 1; i++) waddch(dialog, instr[scroll + i]); } else { - waddstr(dialog, instr); + waddstr(dialog, (char *)instr); } wmove(dialog, box_y, box_x + input_x); @@ -136,7 +136,7 @@ do_resize: waddch(dialog, instr[scroll + input_x + i] ? instr[scroll + input_x + i] : ' '); - input_x = strlen(instr) - scroll; + input_x = strlen((char *)instr) - scroll; } else input_x--; instr[scroll + input_x] = '\0'; |