Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/scripts/kconfig


Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
Location:
branches/3.2/mindi-busybox/scripts/kconfig
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/scripts/kconfig/Makefile

    r2725 r3232  
    8888
    8989%_defconfig: $(obj)/conf
    90     $(Q)$< -D $@ Config.in
     90    $(Q)$< -D configs/$@ Config.in
    9191    $(MTIME_IS_COARSE) && sleep 1
    9292
  • 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)) {
  • branches/3.2/mindi-busybox/scripts/kconfig/lxdialog/textbox.c

    r1765 r3232  
    3939    int i, x, y, cur_x, cur_y, fpos, key = 0;
    4040    int passed_end;
    41     char search_term[MAX_LEN + 1];
    4241    WINDOW *dialog, *text;
    43 
    44     search_term[0] = '\0';  /* no search term entered yet */
    4542
    4643    /* Open input file for reading */
     
    438435static void print_line(WINDOW * win, int row, int width)
    439436{
    440     int y, x;
    441437    char *line;
    442438
     
    447443    waddnstr(win, line, MIN(strlen(line), width - 2));
    448444
    449     getyx(win, y, x);
    450445    /* Clear 'residue' of previous line */
    451446#if OLD_NCURSES
    452447    {
    453448        int i;
     449        int y, x;
     450
     451        getyx(win, y, x);
    454452        for (i = 0; i < width - x; i++)
    455453            waddch(win, ' ');
  • branches/3.2/mindi-busybox/scripts/kconfig/mconf.c

    r2859 r3232  
    88 * i18n, 2005, Arnaldo Carvalho de Melo <acme@conectiva.com.br>
    99 */
     10
     11#define _XOPEN_SOURCE 700
     12/* On Darwin, this may be needed to get SIGWINCH: */
     13#define _DARWIN_C_SOURCE 1
    1014
    1115#include <sys/ioctl.h>
     
    1923#include <stdlib.h>
    2024#include <string.h>
     25#include <strings.h> /* for strcasecmp */
    2126#include <termios.h>
    2227#include <unistd.h>
     
    441446pid_t pid;
    442447
     448#ifdef SIGWINCH
    443449static void winch_handler(int sig)
    444450{
     
    448454    }
    449455}
     456#endif
    450457
    451458static int exec_conf(void)
    452459{
    453460    int pipefd[2], stat, size;
    454     struct sigaction sa;
    455461    sigset_t sset, osset;
    456462
     
    461467    signal(SIGINT, SIG_DFL);
    462468
    463     sa.sa_handler = winch_handler;
    464     sigemptyset(&sa.sa_mask);
    465     sa.sa_flags = SA_RESTART;
    466     sigaction(SIGWINCH, &sa, NULL);
     469#ifdef SIGWINCH
     470    {
     471        struct sigaction sa;
     472        sa.sa_handler = winch_handler;
     473        sigemptyset(&sa.sa_mask);
     474        sa.sa_flags = SA_RESTART;
     475        sigaction(SIGWINCH, &sa, NULL);
     476    }
     477#endif
    467478
    468479    *argptr++ = NULL;
Note: See TracChangeset for help on using the changeset viewer.