summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-09-17 16:28:10 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-09-17 16:28:10 +0000
commit9213a9e0f2d8fd638ecd02e2628d96dd5c7d233e (patch)
tree94c3c0678d1349497abe2db6004e9331e50f6d37 /scripts
parenta6127aacef047ed7661722705b052811fbe7f467 (diff)
downloadbusybox-w32-9213a9e0f2d8fd638ecd02e2628d96dd5c7d233e.tar.gz
busybox-w32-9213a9e0f2d8fd638ecd02e2628d96dd5c7d233e.tar.bz2
busybox-w32-9213a9e0f2d8fd638ecd02e2628d96dd5c7d233e.zip
whitespace cleanup
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkhelp.awk2
-rw-r--r--scripts/config/lxdialog/BIG.FAT.WARNING2
-rw-r--r--scripts/config/lxdialog/menubox.c8
-rw-r--r--scripts/config/lxdialog/util.c6
-rw-r--r--scripts/config/mconf.c2
-rw-r--r--scripts/config/menu.c2
6 files changed, 11 insertions, 11 deletions
diff --git a/scripts/checkhelp.awk b/scripts/checkhelp.awk
index 85d0661a7..608a46e58 100755
--- a/scripts/checkhelp.awk
+++ b/scripts/checkhelp.awk
@@ -2,7 +2,7 @@
2# AWK script to check for missing help entries for config options 2# AWK script to check for missing help entries for config options
3# 3#
4# Copyright (C) 2006 Bernhard Fischer 4# Copyright (C) 2006 Bernhard Fischer
5# 5#
6# This file is distributed under the terms and conditions of the 6# This file is distributed under the terms and conditions of the
7# MIT/X public licenses. See http://opensource.org/licenses/mit-license.html 7# MIT/X public licenses. See http://opensource.org/licenses/mit-license.html
8# and notice http://www.gnu.org/licenses/license-list.html#X11License 8# and notice http://www.gnu.org/licenses/license-list.html#X11License
diff --git a/scripts/config/lxdialog/BIG.FAT.WARNING b/scripts/config/lxdialog/BIG.FAT.WARNING
index a8999d82b..7cb5a7ec9 100644
--- a/scripts/config/lxdialog/BIG.FAT.WARNING
+++ b/scripts/config/lxdialog/BIG.FAT.WARNING
@@ -1,4 +1,4 @@
1This is NOT the official version of dialog. This version has been 1This is NOT the official version of dialog. This version has been
2significantly modified from the original. It is for use by the Linux 2significantly modified from the original. It is for use by the Linux
3kernel configuration script. Please do not bother Savio Lam with 3kernel configuration script. Please do not bother Savio Lam with
4questions about this program. 4questions about this program.
diff --git a/scripts/config/lxdialog/menubox.c b/scripts/config/lxdialog/menubox.c
index 23a38e0fb..bdaaa1040 100644
--- a/scripts/config/lxdialog/menubox.c
+++ b/scripts/config/lxdialog/menubox.c
@@ -305,7 +305,7 @@ dialog_menu (const char *title, const char *prompt, int height, int width,
305 305
306 if (key == KEY_UP || key == '-') { 306 if (key == KEY_UP || key == '-') {
307 if (choice < 2 && scroll) { 307 if (choice < 2 && scroll) {
308 /* Scroll menu down */ 308 /* Scroll menu down */
309 scrollok (menu, TRUE); 309 scrollok (menu, TRUE);
310 wscrl (menu, -1); 310 wscrl (menu, -1);
311 scrollok (menu, FALSE); 311 scrollok (menu, FALSE);
@@ -339,7 +339,7 @@ dialog_menu (const char *title, const char *prompt, int height, int width,
339 choice = MIN(choice+1, max_choice-1); 339 choice = MIN(choice+1, max_choice-1);
340 340
341 } else if (key == KEY_PPAGE) { 341 } else if (key == KEY_PPAGE) {
342 scrollok (menu, TRUE); 342 scrollok (menu, TRUE);
343 for (i=0; (i < max_choice); i++) { 343 for (i=0; (i < max_choice); i++) {
344 if (scroll > 0) { 344 if (scroll > 0) {
345 wscrl (menu, -1); 345 wscrl (menu, -1);
@@ -361,8 +361,8 @@ dialog_menu (const char *title, const char *prompt, int height, int width,
361 scrollok (menu, FALSE); 361 scrollok (menu, FALSE);
362 scroll++; 362 scroll++;
363 print_item (menu, items[scroll + max_choice - 1]->name, 363 print_item (menu, items[scroll + max_choice - 1]->name,
364 max_choice-1, FALSE, 364 max_choice-1, FALSE,
365 (items[scroll + max_choice - 1]->tag[0] != ':')); 365 (items[scroll + max_choice - 1]->tag[0] != ':'));
366 } else { 366 } else {
367 if (choice+1 < max_choice) 367 if (choice+1 < max_choice)
368 choice++; 368 choice++;
diff --git a/scripts/config/lxdialog/util.c b/scripts/config/lxdialog/util.c
index bb43c836e..26dd376b9 100644
--- a/scripts/config/lxdialog/util.c
+++ b/scripts/config/lxdialog/util.c
@@ -224,7 +224,7 @@ print_autowrap (WINDOW * win, const char *prompt, int width, int y, int x)
224 while (word && *word) { 224 while (word && *word) {
225 sp = strchr(word, ' '); 225 sp = strchr(word, ' ');
226 if (sp) 226 if (sp)
227 *sp++ = 0; 227 *sp++ = 0;
228 228
229 /* Wrap to next line if either the word does not fit, 229 /* Wrap to next line if either the word does not fit,
230 or it is the first word of a new sentence, and it is 230 or it is the first word of a new sentence, and it is
@@ -242,11 +242,11 @@ print_autowrap (WINDOW * win, const char *prompt, int width, int y, int x)
242 getyx (win, cur_y, cur_x); 242 getyx (win, cur_y, cur_x);
243 cur_x++; 243 cur_x++;
244 if (sp && *sp == ' ') { 244 if (sp && *sp == ' ') {
245 cur_x++; /* double space */ 245 cur_x++; /* double space */
246 while (*++sp == ' '); 246 while (*++sp == ' ');
247 newl = 1; 247 newl = 1;
248 } else 248 } else
249 newl = 0; 249 newl = 0;
250 word = sp; 250 word = sp;
251 } 251 }
252 } 252 }
diff --git a/scripts/config/mconf.c b/scripts/config/mconf.c
index b2fb112f5..b8f27e69c 100644
--- a/scripts/config/mconf.c
+++ b/scripts/config/mconf.c
@@ -408,7 +408,7 @@ static void get_symbol_str(struct gstr *r, struct symbol *sym)
408 struct property *prop; 408 struct property *prop;
409 409
410 str_printf(r, "Symbol: %s [=%s]\n", sym->name, 410 str_printf(r, "Symbol: %s [=%s]\n", sym->name,
411 sym_get_string_value(sym)); 411 sym_get_string_value(sym));
412 for_all_prompts(sym, prop) 412 for_all_prompts(sym, prop)
413 get_prompt_str(r, prop); 413 get_prompt_str(r, prop);
414 hit = false; 414 hit = false;
diff --git a/scripts/config/menu.c b/scripts/config/menu.c
index 57292cf1d..7e97e8330 100644
--- a/scripts/config/menu.c
+++ b/scripts/config/menu.c
@@ -185,7 +185,7 @@ void sym_check_prop(struct symbol *sym)
185 case P_RANGE: 185 case P_RANGE:
186 if (sym->type != S_INT && sym->type != S_HEX) 186 if (sym->type != S_INT && sym->type != S_HEX)
187 prop_warn(prop, "range is only allowed " 187 prop_warn(prop, "range is only allowed "
188 "for int or hex symbols"); 188 "for int or hex symbols");
189 if (!sym_string_valid(sym, prop->expr->left.sym->name) || 189 if (!sym_string_valid(sym, prop->expr->left.sym->name) ||
190 !sym_string_valid(sym, prop->expr->right.sym->name)) 190 !sym_string_valid(sym, prop->expr->right.sym->name))
191 prop_warn(prop, "range is invalid"); 191 prop_warn(prop, "range is invalid");