Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (6 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/scripts/kconfig/conf.c

    r2725 r3232  
    33 * Released under the terms of the GNU GPL v2.0.
    44 */
     5
     6#define _XOPEN_SOURCE 700
    57
    68#include <ctype.h>
     
    172174{
    173175    struct symbol *sym = menu->sym;
    174     const char *def, *help;
     176    const char *def;
    175177
    176178    while (1) {
     
    187189            /* print help */
    188190            if (line[1] == '\n') {
    189                 help = nohelp_text;
    190                 if (menu->sym->help)
    191                     help = menu->sym->help;
    192                 printf("\n%s\n", menu->sym->help);
     191                printf("\n%s\n", menu->sym->help ? menu->sym->help : nohelp_text);
    193192                def = NULL;
    194193                break;
     
    206205{
    207206    struct symbol *sym = menu->sym;
    208     int type;
    209207    tristate oldval, newval;
    210208    const char *help;
     
    214212        if (sym->name)
    215213            printf("(%s) ", sym->name);
    216         type = sym_get_type(sym);
    217214        putchar('[');
    218215        oldval = sym_get_tristate_value(sym);
     
    281278    struct symbol *sym, *def_sym;
    282279    struct menu *child;
    283     int type;
    284280    bool is_new;
    285281
    286282    sym = menu->sym;
    287     type = sym_get_type(sym);
    288283    is_new = !sym_has_value(sym);
    289284    if (sym_is_changable(sym)) {
Note: See TracChangeset for help on using the changeset viewer.