Changeset 743414b


Ignore:
Timestamp:
02/10/2012 09:39:11 AM (12 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
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • menu/conf.c

    rd7390a5 r743414b  
    180180                                if (menu->sym->help)
    181181                                        help = menu->sym->help;
    182                                 printf("\n%s\n", menu->sym->help);
     182                                printf("\n%s\n", help);
    183183                                def = NULL;
    184184                                break;
     
    196196{
    197197        struct symbol *sym = menu->sym;
    198         int type;
    199198        tristate oldval, newval;
    200199        const char *help;
     
    204203                if (sym->name)
    205204                        printf("(%s) ", sym->name);
    206                 type = sym_get_type(sym);
     205                (void)sym_get_type(sym);
    207206                putchar('[');
    208207                oldval = sym_get_tristate_value(sym);
     
    271270        struct symbol *sym, *def_sym;
    272271        struct menu *child;
    273         int type;
    274272        bool is_new;
    275273
    276274        sym = menu->sym;
    277         type = sym_get_type(sym);
     275        (void)sym_get_type(sym);
    278276        is_new = !sym_has_value(sym);
    279277        if (sym_is_changable(sym)) {
  • menu/lex.zconf.c_shipped

    rd7390a5 r743414b  
    33
    44#define  YY_INT_ALIGNED short int
     5
     6/* Define this so that no warnings are issued during
     7   compilation of jhalfs */
     8#define YY_NO_INPUT 1
    59
    610/* A lexical scanner generated by flex */
  • 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.