···154154static void add_new_symbol(struct symfile *sym, char * symname)155155{156156 sym->symbollist =157157- realloc(sym->symbollist, (sym->symbolcnt + 1) * sizeof(char *));157157+ realloc(sym->symbollist, (sym->symbolcnt + 1) * sizeof(char *));158158 sym->symbollist[sym->symbolcnt++].name = strdup(symname);159159}160160···215215 char *p;216216 char *e;217217 if (((p = strstr(line, "EXPORT_SYMBOL_GPL")) != NULL) ||218218- ((p = strstr(line, "EXPORT_SYMBOL")) != NULL)) {218218+ ((p = strstr(line, "EXPORT_SYMBOL")) != NULL)) {219219 /* Skip EXPORT_SYMBOL{_GPL} */220220 while (isalnum(*p) || *p == '_')221221 p++;···291291static void singfunc(char * filename, char * line)292292{293293 char *vec[200]; /* Enough for specific functions */294294- int i, idx = 0;295295- int startofsym = 1;294294+ int i, idx = 0;295295+ int startofsym = 1;296296 vec[idx++] = KERNELDOC;297297 vec[idx++] = DOCBOOK;298298 vec[idx++] = SHOWNOTFOUND;299299300300- /* Split line up in individual parameters preceded by FUNCTION */301301- for (i=0; line[i]; i++) {302302- if (isspace(line[i])) {303303- line[i] = '\0';304304- startofsym = 1;305305- continue;306306- }307307- if (startofsym) {308308- startofsym = 0;309309- vec[idx++] = FUNCTION;310310- vec[idx++] = &line[i];311311- }312312- }300300+ /* Split line up in individual parameters preceded by FUNCTION */301301+ for (i=0; line[i]; i++) {302302+ if (isspace(line[i])) {303303+ line[i] = '\0';304304+ startofsym = 1;305305+ continue;306306+ }307307+ if (startofsym) {308308+ startofsym = 0;309309+ vec[idx++] = FUNCTION;310310+ vec[idx++] = &line[i];311311+ }312312+ }313313 for (i = 0; i < idx; i++) {314314- if (strcmp(vec[i], FUNCTION))315315- continue;314314+ if (strcmp(vec[i], FUNCTION))315315+ continue;316316 consume_symbol(vec[i + 1]);317317 }318318 vec[idx++] = filename;···460460 break;461461 case 'D':462462 while (*s && !isspace(*s)) s++;463463- *s = '\0';464464- symbolsonly(line+2);465465- break;463463+ *s = '\0';464464+ symbolsonly(line+2);465465+ break;466466 case 'F':467467 /* filename */468468 while (*s && !isspace(*s)) s++;469469 *s++ = '\0';470470- /* function names */470470+ /* function names */471471 while (isspace(*s))472472 s++;473473 singlefunctions(line +2, s);···515515 }516516 /* Open file, exit on error */517517 infile = fopen(argv[2], "r");518518- if (infile == NULL) {519519- fprintf(stderr, "docproc: ");520520- perror(argv[2]);521521- exit(2);522522- }518518+ if (infile == NULL) {519519+ fprintf(stderr, "docproc: ");520520+ perror(argv[2]);521521+ exit(2);522522+ }523523524524 if (strcmp("doc", argv[1]) == 0) {525525 /* Need to do this in two passes.
+1-1
scripts/kallsyms.c
···123123 }124124 if (strlen(str) > KSYM_NAME_LEN) {125125 fprintf(stderr, "Symbol %s too long for kallsyms (%zu vs %d).\n"126126- "Please increase KSYM_NAME_LEN both in kernel and kallsyms.c\n",126126+ "Please increase KSYM_NAME_LEN both in kernel and kallsyms.c\n",127127 str, strlen(str), KSYM_NAME_LEN);128128 return -1;129129 }
+1-1
scripts/kconfig/conf.c
···696696 } else if (input_mode == savedefconfig) {697697 if (conf_write_defconfig(defconfig_file)) {698698 fprintf(stderr, _("n*** Error while saving defconfig to: %s\n\n"),699699- defconfig_file);699699+ defconfig_file);700700 return 1;701701 }702702 } else if (input_mode != listnewconfig) {
···168168169169 /* create new window for the list */170170 list = subwin(dialog, list_height, list_width, y + box_y + 1,171171- x + box_x + 1);171171+ x + box_x + 1);172172173173 keypad(list, TRUE);174174175175 /* draw a box around the list items */176176 draw_box(dialog, box_y, box_x, list_height + 2, list_width + 2,177177- dlg.menubox_border.atr, dlg.menubox.atr);177177+ dlg.menubox_border.atr, dlg.menubox.atr);178178179179 /* Find length of longest item in order to center checklist */180180 check_x = 0;
+1-1
scripts/kconfig/lxdialog/inputbox.c
···4242 * Display a dialog box for inputing a string4343 */4444int dialog_inputbox(const char *title, const char *prompt, int height, int width,4545- const char *init)4545+ const char *init)4646{4747 int i, x, y, box_y, box_x, box_width;4848 int input_x = 0, key = 0, button = -1;
+2-2
scripts/kconfig/lxdialog/menubox.c
···6464 * Print menu item6565 */6666static void do_print_item(WINDOW * win, const char *item, int line_y,6767- int selected, int hotkey)6767+ int selected, int hotkey)6868{6969 int j;7070 char *menu_item = malloc(menu_width + 1);···182182 * Display a menu for choosing among a number of options183183 */184184int dialog_menu(const char *title, const char *prompt,185185- const void *selected, int *s_scroll)185185+ const void *selected, int *s_scroll)186186{187187 int i, j, x, y, box_x, box_y;188188 int height, width, menu_height;
···258258 "config symbol '%s' uses select, but is "259259 "not boolean or tristate", sym->name);260260 else if (sym2->type != S_UNKNOWN &&261261- sym2->type != S_BOOLEAN &&262262- sym2->type != S_TRISTATE)261261+ sym2->type != S_BOOLEAN &&262262+ sym2->type != S_TRISTATE)263263 prop_warn(prop,264264 "'%s' has wrong type. 'select' only "265265 "accept arguments of boolean and "···268268 case P_RANGE:269269 if (sym->type != S_INT && sym->type != S_HEX)270270 prop_warn(prop, "range is only allowed "271271- "for int or hex symbols");271271+ "for int or hex symbols");272272 if (!menu_validate_number(sym, prop->expr->left.sym) ||273273 !menu_validate_number(sym, prop->expr->right.sym))274274 prop_warn(prop, "range is invalid");