--- zzzz-none-000/linux-2.6.32.61/scripts/kconfig/conf.c 2013-06-10 09:43:48.000000000 +0000 +++ ar10-7272-687/linux-2.6.32.61/scripts/kconfig/conf.c 2011-10-21 12:21:44.000000000 +0000 @@ -101,9 +101,12 @@ } check_stdin(); case ask_all: - fflush(stdout); - fgets(line, 128, stdin); - return 1; + fflush(stdout); + // hbl: remove fgets(...) warn_unused_result + if(!fgets(line, 128, stdin)) { + line[0] = '\0'; + } + return 1; default: break; } @@ -303,21 +306,25 @@ } check_stdin(); case ask_all: - fflush(stdout); - fgets(line, 128, stdin); - strip(line); - if (line[0] == '?') { - print_help(menu); - continue; - } - if (!line[0]) - cnt = def; - else if (isdigit(line[0])) - cnt = atoi(line); - else - continue; - break; - default: + fflush(stdout); + // hbl: remove fgets(...) warn_unused_result + if(!fgets(line, 128, stdin)) { + line[0] = '\0'; + } + + strip(line); + if (line[0] == '?') { + print_help(menu); + continue; + } + if (!line[0]) + cnt = def; + else if (isdigit(line[0])) + cnt = atoi(line); + else + continue; + break; + default: break; }