Changeset 743414b for menu/lxdialog


Ignore:
Timestamp:
02/10/2012 09:39:11 AM (13 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
b339c94
Parents:
d7390a5
Message:

Changes slightly the code in menu directory so that "conf"
and "mconf" build without issuing warnings

Location:
menu/lxdialog
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • menu/lxdialog/dialog.h

    rd7390a5 r743414b  
    175175                int width, int list_height, int item_no,
    176176                struct dialog_list_item ** items, int flag);
    177 extern unsigned char dialog_input_result[];
     177extern char dialog_input_result[];
    178178int dialog_inputbox (const char *title, const char *prompt, int height,
    179179                int width, const char *init);
  • menu/lxdialog/inputbox.c

    rd7390a5 r743414b  
    2222#include "dialog.h"
    2323
    24 unsigned char dialog_input_result[MAX_LEN + 1];
     24char dialog_input_result[MAX_LEN + 1];
    2525
    2626/*
     
    4949    int i, x, y, box_y, box_x, box_width;
    5050    int input_x = 0, scroll = 0, key = 0, button = -1;
    51     unsigned char *instr = dialog_input_result;
     51    char *instr = dialog_input_result;
    5252    WINDOW *dialog;
    5353
  • menu/lxdialog/textbox.c

    rd7390a5 r743414b  
    4040    int i, x, y, cur_x, cur_y, fpos, key = 0;
    4141    int passed_end;
    42     char search_term[MAX_LEN + 1];
    4342    WINDOW *dialog, *text;
    44 
    45     search_term[0] = '\0';      /* no search term entered yet */
    4643
    4744    /* Open input file for reading */
     
    460457print_line (WINDOW * win, int row, int width)
    461458{
    462     int y, x;
    463459    char *line;
    464460
     
    469465    waddnstr (win, line, MIN (strlen (line), width - 2));
    470466
    471     getyx (win, y, x);
    472467    /* Clear 'residue' of previous line */
    473468#if OLD_NCURSES
    474469    {
     470        int y, x;
    475471        int i;
     472        getyx (win, y, x);
    476473        for (i = 0; i < width - x; i++)
    477474            waddch (win, ' ');
Note: See TracChangeset for help on using the changeset viewer.