aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-04-17 16:13:32 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-04-17 16:13:32 +0200
commit10ad622dc2a9fb6563fab13719ead8baf15ff9e4 (patch)
tree82312d6f38a517dcc7c0004f78d76c667f5a674b
parentd85352b4ff51694cb35b429e4cef53302c9e7076 (diff)
downloadbusybox-w32-10ad622dc2a9fb6563fab13719ead8baf15ff9e4.tar.gz
busybox-w32-10ad622dc2a9fb6563fab13719ead8baf15ff9e4.tar.bz2
busybox-w32-10ad622dc2a9fb6563fab13719ead8baf15ff9e4.zip
Spelling fixes in comments, documentation, tests and examples
By klemens <ka7@github.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--archival/dpkg.c26
-rw-r--r--archival/libarchive/decompress_bunzip2.c2
-rw-r--r--archival/libarchive/unxz/xz_dec_lzma2.c4
-rw-r--r--archival/tar.c4
-rw-r--r--coreutils/dos2unix.c2
-rw-r--r--docs/sigint.htm10
-rw-r--r--docs/style-guide.txt2
-rw-r--r--editors/sed.c8
-rwxr-xr-xexamples/var_service/dhcp_if/dhcp_handler2
-rw-r--r--findutils/find.c2
-rw-r--r--findutils/grep.c4
-rw-r--r--libbb/getopt32.c2
-rw-r--r--libpwdgrp/pwd_grp.c4
-rw-r--r--loginutils/cryptpw.c2
-rw-r--r--miscutils/inotifyd.c2
-rw-r--r--miscutils/less.c2
-rw-r--r--miscutils/time.c2
-rw-r--r--modutils/Config.src2
-rw-r--r--modutils/modinfo.c2
-rw-r--r--modutils/modprobe-small.c4
-rw-r--r--networking/dnsd.c2
-rw-r--r--networking/ifenslave.c2
-rw-r--r--networking/isrv.c2
-rw-r--r--networking/nc_bloaty.c4
-rw-r--r--networking/ntpd.c6
-rw-r--r--networking/ping.c4
-rw-r--r--networking/tcpudp.c2
-rw-r--r--networking/udhcp/dhcpc.c2
-rw-r--r--networking/udhcp/dhcprelay.c2
-rw-r--r--networking/vconfig.c2
-rw-r--r--shell/ash.c12
-rwxr-xr-xshell/ash_test/ash-misc/unicode1.tests2
-rw-r--r--shell/hush.c12
-rwxr-xr-xshell/hush_test/hush-misc/unicode1.tests2
-rw-r--r--sysklogd/logread.c4
-rwxr-xr-xtestsuite/readlink.tests2
-rw-r--r--util-linux/cal.c2
-rw-r--r--util-linux/hwclock.c2
-rw-r--r--util-linux/renice.c2
-rw-r--r--util-linux/switch_root.c2
-rw-r--r--util-linux/volume_id/udf.c2
41 files changed, 80 insertions, 80 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c
index f133299e3..1cd45eda4 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -18,7 +18,7 @@
18 * known difference between busybox dpkg and the official dpkg that i don't 18 * known difference between busybox dpkg and the official dpkg that i don't
19 * consider important, its worth keeping a note of differences anyway, just to 19 * consider important, its worth keeping a note of differences anyway, just to
20 * make it easier to maintain. 20 * make it easier to maintain.
21 * - the first value for the confflile: field isnt placed on a new line. 21 * - the first value for the confflile: field isn't placed on a new line.
22 * - when installing a package the status: field is placed at the end of the 22 * - when installing a package the status: field is placed at the end of the
23 * section, rather than just after the package: field. 23 * section, rather than just after the package: field.
24 * 24 *
@@ -110,7 +110,7 @@ typedef struct common_node_s {
110 edge_t **edge; 110 edge_t **edge;
111} common_node_t; 111} common_node_t;
112 112
113/* Currently it doesnt store packages that have state-status of not-installed 113/* Currently it doesn't store packages that have state-status of not-installed
114 * So it only really has to be the size of the maximum number of packages 114 * So it only really has to be the size of the maximum number of packages
115 * likely to be installed at any one time, so there is a bit of leeway here */ 115 * likely to be installed at any one time, so there is a bit of leeway here */
116#define STATUS_HASH_PRIME 8191 116#define STATUS_HASH_PRIME 8191
@@ -205,7 +205,7 @@ static int search_name_hashtable(const char *key)
205 return probe_address; 205 return probe_address;
206} 206}
207 207
208/* this DOESNT add the key to the hashtable 208/* this DOESN'T add the key to the hashtable
209 * TODO make it consistent with search_name_hashtable 209 * TODO make it consistent with search_name_hashtable
210 */ 210 */
211static unsigned search_status_hashtable(const char *key) 211static unsigned search_status_hashtable(const char *key)
@@ -467,7 +467,7 @@ static void add_split_dependencies(common_node_t *parent_node, const char *whole
467 version = strchr(field2, '('); 467 version = strchr(field2, '(');
468 if (version == NULL) { 468 if (version == NULL) {
469 edge->operator = VER_ANY; 469 edge->operator = VER_ANY;
470 /* Get the versions hash number, adding it if the number isnt already in there */ 470 /* Get the versions hash number, adding it if the number isn't already in there */
471 edge->version = search_name_hashtable("ANY"); 471 edge->version = search_name_hashtable("ANY");
472 } else { 472 } else {
473 /* Skip leading ' ' or '(' */ 473 /* Skip leading ' ' or '(' */
@@ -496,7 +496,7 @@ static void add_split_dependencies(common_node_t *parent_node, const char *whole
496 496
497 /* Truncate version at trailing ' ' or ')' */ 497 /* Truncate version at trailing ' ' or ')' */
498 version[strcspn(version, " )")] = '\0'; 498 version[strcspn(version, " )")] = '\0';
499 /* Get the versions hash number, adding it if the number isnt already in there */ 499 /* Get the versions hash number, adding it if the number isn't already in there */
500 edge->version = search_name_hashtable(version); 500 edge->version = search_name_hashtable(version);
501 } 501 }
502 502
@@ -562,7 +562,7 @@ static int read_package_field(const char *package_buffer, char **field_name, cha
562 offset_name_end = offset; 562 offset_name_end = offset;
563 offset_value_start = next_offset; 563 offset_value_start = next_offset;
564 } 564 }
565 /* TODO: Name might still have trailing spaces if ':' isnt 565 /* TODO: Name might still have trailing spaces if ':' isn't
566 * immediately after name */ 566 * immediately after name */
567 break; 567 break;
568 case '\n': 568 case '\n':
@@ -776,7 +776,7 @@ static void index_status_file(const char *filename)
776 const unsigned package_num = fill_package_struct(control_buffer); 776 const unsigned package_num = fill_package_struct(control_buffer);
777 if (package_num != -1) { 777 if (package_num != -1) {
778 status_node = xmalloc(sizeof(status_node_t)); 778 status_node = xmalloc(sizeof(status_node_t));
779 /* fill_package_struct doesnt handle the status field */ 779 /* fill_package_struct doesn't handle the status field */
780 status_line = strstr(control_buffer, "Status:"); 780 status_line = strstr(control_buffer, "Status:");
781 if (status_line != NULL) { 781 if (status_line != NULL) {
782 status_line += 7; 782 status_line += 7;
@@ -850,7 +850,7 @@ static void write_status_file(deb_file_t **deb_file)
850 if (status_hashtable[status_num] != NULL) { 850 if (status_hashtable[status_num] != NULL) {
851 const char *status_from_hashtable = name_hashtable[status_hashtable[status_num]->status]; 851 const char *status_from_hashtable = name_hashtable[status_hashtable[status_num]->status];
852 if (strcmp(status_from_file, status_from_hashtable) != 0) { 852 if (strcmp(status_from_file, status_from_hashtable) != 0) {
853 /* New status isnt exactly the same as old status */ 853 /* New status isn't exactly the same as old status */
854 const int state_status = get_status(status_num, 3); 854 const int state_status = get_status(status_num, 3);
855 if ((strcmp("installed", name_hashtable[state_status]) == 0) 855 if ((strcmp("installed", name_hashtable[state_status]) == 0)
856 || (strcmp("unpacked", name_hashtable[state_status]) == 0) 856 || (strcmp("unpacked", name_hashtable[state_status]) == 0)
@@ -919,7 +919,7 @@ static void write_status_file(deb_file_t **deb_file)
919 } 919 }
920 } 920 }
921 } 921 }
922 /* If the package from the status file wasnt handle above, do it now*/ 922 /* If the package from the status file wasn't handle above, do it now*/
923 if (!write_flag) { 923 if (!write_flag) {
924 fprintf(new_status_file, "%s\n\n", control_buffer); 924 fprintf(new_status_file, "%s\n\n", control_buffer);
925 } 925 }
@@ -946,7 +946,7 @@ static void write_status_file(deb_file_t **deb_file)
946 if (errno != ENOENT) 946 if (errno != ENOENT)
947 bb_error_msg_and_die("can't create backup status file"); 947 bb_error_msg_and_die("can't create backup status file");
948 /* Its ok if renaming the status file fails because status 948 /* Its ok if renaming the status file fails because status
949 * file doesnt exist, maybe we are starting from scratch */ 949 * file doesn't exist, maybe we are starting from scratch */
950 bb_error_msg("no status file found, creating new one"); 950 bb_error_msg("no status file found, creating new one");
951 } 951 }
952 952
@@ -1061,7 +1061,7 @@ static int check_deps(deb_file_t **deb_file, int deb_start /*, int dep_max_count
1061 } 1061 }
1062 1062
1063 1063
1064 /* Check dependendcies */ 1064 /* Check dependentcies */
1065 for (i = 0; i < PACKAGE_HASH_PRIME; i++) { 1065 for (i = 0; i < PACKAGE_HASH_PRIME; i++) {
1066 int status_num = 0; 1066 int status_num = 0;
1067 int number_of_alternatives = 0; 1067 int number_of_alternatives = 0;
@@ -1244,7 +1244,7 @@ static void run_package_script_or_die(const char *package_name, const char *scri
1244 1244
1245 script_path = xasprintf("/var/lib/dpkg/info/%s.%s", package_name, script_type); 1245 script_path = xasprintf("/var/lib/dpkg/info/%s.%s", package_name, script_type);
1246 1246
1247 /* If the file doesnt exist is isnt fatal */ 1247 /* If the file doesn't exist it isn't fatal */
1248 result = access(script_path, F_OK) ? EXIT_SUCCESS : system(script_path); 1248 result = access(script_path, F_OK) ? EXIT_SUCCESS : system(script_path);
1249 free(script_path); 1249 free(script_path);
1250 if (result) 1250 if (result)
@@ -1839,7 +1839,7 @@ int dpkg_main(int argc UNUSED_PARAM, char **argv)
1839 ) { 1839 ) {
1840 status_node = xmalloc(sizeof(status_node_t)); 1840 status_node = xmalloc(sizeof(status_node_t));
1841 status_node->package = deb_file[deb_count]->package; 1841 status_node->package = deb_file[deb_count]->package;
1842 /* reinstreq isnt changed to "ok" until the package control info 1842 /* reinstreq isn't changed to "ok" until the package control info
1843 * is written to the status file*/ 1843 * is written to the status file*/
1844 status_node->status = search_name_hashtable("install reinstreq not-installed"); 1844 status_node->status = search_name_hashtable("install reinstreq not-installed");
1845 status_hashtable[status_num] = status_node; 1845 status_hashtable[status_num] = status_node;
diff --git a/archival/libarchive/decompress_bunzip2.c b/archival/libarchive/decompress_bunzip2.c
index 4fb989c29..803702f75 100644
--- a/archival/libarchive/decompress_bunzip2.c
+++ b/archival/libarchive/decompress_bunzip2.c
@@ -308,7 +308,7 @@ static int get_next_block(bunzip_data *bd)
308 base = hufGroup->base - 1; 308 base = hufGroup->base - 1;
309 limit = hufGroup->limit - 1; 309 limit = hufGroup->limit - 1;
310 310
311 /* Calculate permute[]. Concurently, initialize temp[] and limit[]. */ 311 /* Calculate permute[]. Concurrently, initialize temp[] and limit[]. */
312 pp = 0; 312 pp = 0;
313 for (i = minLen; i <= maxLen; i++) { 313 for (i = minLen; i <= maxLen; i++) {
314 int k; 314 int k;
diff --git a/archival/libarchive/unxz/xz_dec_lzma2.c b/archival/libarchive/unxz/xz_dec_lzma2.c
index 351251f7c..bca41e705 100644
--- a/archival/libarchive/unxz/xz_dec_lzma2.c
+++ b/archival/libarchive/unxz/xz_dec_lzma2.c
@@ -486,11 +486,11 @@ static __always_inline void XZ_FUNC rc_normalize(struct rc_dec *rc)
486} 486}
487 487
488/* 488/*
489 * Decode one bit. In some versions, this function has been splitted in three 489 * Decode one bit. In some versions, this function has been split in three
490 * functions so that the compiler is supposed to be able to more easily avoid 490 * functions so that the compiler is supposed to be able to more easily avoid
491 * an extra branch. In this particular version of the LZMA decoder, this 491 * an extra branch. In this particular version of the LZMA decoder, this
492 * doesn't seem to be a good idea (tested with GCC 3.3.6, 3.4.6, and 4.3.3 492 * doesn't seem to be a good idea (tested with GCC 3.3.6, 3.4.6, and 4.3.3
493 * on x86). Using a non-splitted version results in nicer looking code too. 493 * on x86). Using a non-split version results in nicer looking code too.
494 * 494 *
495 * NOTE: This must return an int. Do not make it return a bool or the speed 495 * NOTE: This must return an int. Do not make it return a bool or the speed
496 * of the code generated by GCC 3.x decreases 10-15 %. (GCC 4.3 doesn't care, 496 * of the code generated by GCC 3.x decreases 10-15 %. (GCC 4.3 doesn't care,
diff --git a/archival/tar.c b/archival/tar.c
index b1d58a2df..b70e00a8b 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -529,8 +529,8 @@ static int FAST_FUNC writeFileToTarball(const char *fileName, struct stat *statb
529 /* 529 /*
530 * Check to see if we are dealing with a hard link. 530 * Check to see if we are dealing with a hard link.
531 * If so - 531 * If so -
532 * Treat the first occurance of a given dev/inode as a file while 532 * Treat the first occurrence of a given dev/inode as a file while
533 * treating any additional occurances as hard links. This is done 533 * treating any additional occurrences as hard links. This is done
534 * by adding the file information to the HardLinkInfo linked list. 534 * by adding the file information to the HardLinkInfo linked list.
535 */ 535 */
536 tbInfo->hlInfo = NULL; 536 tbInfo->hlInfo = NULL;
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c
index 6d2347163..9d81ccca6 100644
--- a/coreutils/dos2unix.c
+++ b/coreutils/dos2unix.c
@@ -2,7 +2,7 @@
2/* 2/*
3 * dos2unix for BusyBox 3 * dos2unix for BusyBox
4 * 4 *
5 * dos2unix '\n' convertor 0.5.0 5 * dos2unix '\n' converter 0.5.0
6 * based on Unix2Dos 0.9.0 by Peter Hanecak (made 19.2.1997) 6 * based on Unix2Dos 0.9.0 by Peter Hanecak (made 19.2.1997)
7 * Copyright 1997,.. by Peter Hanecak <hanecak@megaloman.sk>. 7 * Copyright 1997,.. by Peter Hanecak <hanecak@megaloman.sk>.
8 * All rights reserved. 8 * All rights reserved.
diff --git a/docs/sigint.htm b/docs/sigint.htm
index e230f4df7..d656aeb8c 100644
--- a/docs/sigint.htm
+++ b/docs/sigint.htm
@@ -45,7 +45,7 @@ intention.
45 45
46</td></tr><tr><th valign=top align=left>Required knowledge: </th> 46</td></tr><tr><th valign=top align=left>Required knowledge: </th>
47<td valign=top align=left>You have to know what it means to catch SIGINT or SIGQUIT and how 47<td valign=top align=left>You have to know what it means to catch SIGINT or SIGQUIT and how
48processes are waiting for other processes (childs) they spawned. 48processes are waiting for other processes (children) they spawned.
49 49
50 50
51</td></tr></table> 51</td></tr></table>
@@ -366,7 +366,7 @@ signal, it has to take care of communicating the signal status
366itself. 366itself.
367 367
368<p>Some programs don't do this. On SIGINT, they do cleanup and exit 368<p>Some programs don't do this. On SIGINT, they do cleanup and exit
369immediatly, but the calling shell isn't told about the non-normal exit 369immediately, but the calling shell isn't told about the non-normal exit
370and it will call the next program in the script. 370and it will call the next program in the script.
371 371
372<p>As a result, the user hits SIGINT and while one program exits, the 372<p>As a result, the user hits SIGINT and while one program exits, the
@@ -446,7 +446,7 @@ handlers, so it is portable.
446<code>trap</code> command. Here, the same as for C programs apply. If 446<code>trap</code> command. Here, the same as for C programs apply. If
447the intention of SIGINT is to end your program, you have to exit in a 447the intention of SIGINT is to end your program, you have to exit in a
448way that the calling programs "sees" that you have been killed. If 448way that the calling programs "sees" that you have been killed. If
449you don't catch SIGINT, this happend automatically, but of you catch 449you don't catch SIGINT, this happened automatically, but of you catch
450SIGINT, i.e. to do cleanup work, you have to end the program by 450SIGINT, i.e. to do cleanup work, you have to end the program by
451killing yourself, not by calling exit. 451killing yourself, not by calling exit.
452 452
@@ -466,7 +466,7 @@ files (which isn't really portable in C, though).
466bourne shell. Every language implementation that lets you catch SIGINT 466bourne shell. Every language implementation that lets you catch SIGINT
467should also give you the option to reset the signal and kill yourself. 467should also give you the option to reset the signal and kill yourself.
468 468
469<P>It is always desireable to exit the right way, even if you don't 469<P>It is always desirable to exit the right way, even if you don't
470expect your usual callers to depend on it, some unusual one will come 470expect your usual callers to depend on it, some unusual one will come
471along. This proper exit status will be needed for WCE and will not 471along. This proper exit status will be needed for WCE and will not
472hurt when the calling shell uses IUE or WUE. 472hurt when the calling shell uses IUE or WUE.
@@ -565,7 +565,7 @@ comments the scripts echo.
565<th>What happens when a shellscript called emacs, the user did not use 565<th>What happens when a shellscript called emacs, the user did not use
566<code>C-c</code> and the script has additional commands in it?</th> 566<code>C-c</code> and the script has additional commands in it?</th>
567<th>What happens if a non-interactive child catches SIGINT?</th> 567<th>What happens if a non-interactive child catches SIGINT?</th>
568<th>To behave properly, childs must do what?</th> 568<th>To behave properly, children must do what?</th>
569</tr> 569</tr>
570 570
571<tr valign=top align=left> 571<tr valign=top align=left>
diff --git a/docs/style-guide.txt b/docs/style-guide.txt
index 10ed893dc..9eed7f125 100644
--- a/docs/style-guide.txt
+++ b/docs/style-guide.txt
@@ -329,7 +329,7 @@ With "const int" compiler may fail to optimize it out and will reserve
329a real storage in rodata for it! (Hopefully, newer gcc will get better 329a real storage in rodata for it! (Hopefully, newer gcc will get better
330at it...). With "define", you have slight risk of polluting namespace 330at it...). With "define", you have slight risk of polluting namespace
331(#define doesn't allow you to redefine the name in the inner scopes), 331(#define doesn't allow you to redefine the name in the inner scopes),
332and complex "define" are evaluated each time they uesd, not once 332and complex "define" are evaluated each time they used, not once
333at declarations like enums. Also, the preprocessor does _no_ type checking 333at declarations like enums. Also, the preprocessor does _no_ type checking
334whatsoever, making it much more error prone. 334whatsoever, making it much more error prone.
335 335
diff --git a/editors/sed.c b/editors/sed.c
index 637a6851b..ca9ab2054 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -337,7 +337,7 @@ static int get_address(const char *my_str, int *linenum, regex_t ** regex)
337 337
338 if (isdigit(*my_str)) { 338 if (isdigit(*my_str)) {
339 *linenum = strtol(my_str, (char**)&pos, 10); 339 *linenum = strtol(my_str, (char**)&pos, 10);
340 /* endstr shouldnt ever equal NULL */ 340 /* endstr shouldn't ever equal NULL */
341 } else if (*my_str == '$') { 341 } else if (*my_str == '$') {
342 *linenum = -1; 342 *linenum = -1;
343 pos++; 343 pos++;
@@ -444,7 +444,7 @@ static int parse_subst_cmd(sed_cmd_t *sed_cmd, const char *substr)
444 free(fname); 444 free(fname);
445 break; 445 break;
446 } 446 }
447 /* Ignore case (gnu exension) */ 447 /* Ignore case (gnu extension) */
448 case 'i': 448 case 'i':
449 case 'I': 449 case 'I':
450 cflags |= REG_ICASE; 450 cflags |= REG_ICASE;
@@ -587,7 +587,7 @@ static const char *parse_cmd_args(sed_cmd_t *sed_cmd, const char *cmdstr)
587 free(match); 587 free(match);
588 free(replace); 588 free(replace);
589 } 589 }
590 /* if it wasnt a single-letter command that takes no arguments 590 /* if it wasn't a single-letter command that takes no arguments
591 * then it must be an invalid command. 591 * then it must be an invalid command.
592 */ 592 */
593 else if (idx >= IDX_nul) { /* not d,D,g,G,h,H,l,n,N,p,P,q,x,=,{,} */ 593 else if (idx >= IDX_nul) { /* not d,D,g,G,h,H,l,n,N,p,P,q,x,=,{,} */
@@ -751,7 +751,7 @@ static void do_subst_w_backrefs(char *line, char *replace)
751 continue; 751 continue;
752 } 752 }
753 /* I _think_ it is impossible to get '\' to be 753 /* I _think_ it is impossible to get '\' to be
754 * the last char in replace string. Thus we dont check 754 * the last char in replace string. Thus we don't check
755 * for replace[i] == NUL. (counterexample anyone?) */ 755 * for replace[i] == NUL. (counterexample anyone?) */
756 /* if we find a backslash escaped character, print the character */ 756 /* if we find a backslash escaped character, print the character */
757 pipe_putc(replace[i]); 757 pipe_putc(replace[i]);
diff --git a/examples/var_service/dhcp_if/dhcp_handler b/examples/var_service/dhcp_if/dhcp_handler
index 3d2a5cb79..3d44a6022 100755
--- a/examples/var_service/dhcp_if/dhcp_handler
+++ b/examples/var_service/dhcp_if/dhcp_handler
@@ -21,7 +21,7 @@
21# ntpsrv=10.34.32.125 10.34.255.7 21# ntpsrv=10.34.32.125 10.34.255.7
22# 22#
23# renew: lease is renewed. Environment is similar to "bound". 23# renew: lease is renewed. Environment is similar to "bound".
24# The IP address does not change, however, the other DHCP paramaters, 24# The IP address does not change, however, the other DHCP parameters,
25# such as the default gateway, subnet mask, and dns server may change. 25# such as the default gateway, subnet mask, and dns server may change.
26# 26#
27# nak: udhcpc received a NAK message. 27# nak: udhcpc received a NAK message.
diff --git a/findutils/find.c b/findutils/find.c
index 67aa40b21..0596c0059 100644
--- a/findutils/find.c
+++ b/findutils/find.c
@@ -182,7 +182,7 @@
182//config: default y 182//config: default y
183//config: depends on FIND 183//config: depends on FIND
184//config: help 184//config: help
185//config: If the file is a directory, dont descend into it. Useful for 185//config: If the file is a directory, don't descend into it. Useful for
186//config: exclusion .svn and CVS directories. 186//config: exclusion .svn and CVS directories.
187//config: 187//config:
188//config:config FEATURE_FIND_DELETE 188//config:config FEATURE_FIND_DELETE
diff --git a/findutils/grep.c b/findutils/grep.c
index 261e563d5..d66d85a53 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -515,7 +515,7 @@ static int grep_file(FILE *file)
515 if (option_mask32 & OPT_o) { 515 if (option_mask32 & OPT_o) {
516 if (FGREP_FLAG) { 516 if (FGREP_FLAG) {
517 /* -Fo just prints the pattern 517 /* -Fo just prints the pattern
518 * (unless -v: -Fov doesnt print anything at all) */ 518 * (unless -v: -Fov doesn't print anything at all) */
519 if (found) 519 if (found)
520 print_line(gl->pattern, strlen(gl->pattern), linenum, ':'); 520 print_line(gl->pattern, strlen(gl->pattern), linenum, ':');
521 } else while (1) { 521 } else while (1) {
@@ -823,7 +823,7 @@ int grep_main(int argc UNUSED_PARAM, char **argv)
823 grep_done: ; 823 grep_done: ;
824 } while (*argv && *++argv); 824 } while (*argv && *++argv);
825 825
826 /* destroy all the elments in the pattern list */ 826 /* destroy all the elements in the pattern list */
827 if (ENABLE_FEATURE_CLEAN_UP) { 827 if (ENABLE_FEATURE_CLEAN_UP) {
828 while (pattern_head) { 828 while (pattern_head) {
829 llist_t *pattern_head_ptr = pattern_head; 829 llist_t *pattern_head_ptr = pattern_head;
diff --git a/libbb/getopt32.c b/libbb/getopt32.c
index 3104826ef..b87b83538 100644
--- a/libbb/getopt32.c
+++ b/libbb/getopt32.c
@@ -128,7 +128,7 @@ const char *opt_complementary
128 "abc" If groups of two or more chars are specified, the first char 128 "abc" If groups of two or more chars are specified, the first char
129 is the main option and the other chars are secondary options. 129 is the main option and the other chars are secondary options.
130 Their flags will be turned on if the main option is found even 130 Their flags will be turned on if the main option is found even
131 if they are not specifed on the command line. For example: 131 if they are not specified on the command line. For example:
132 132
133 opt_complementary = "abc"; 133 opt_complementary = "abc";
134 flags = getopt32(argv, "abcd") 134 flags = getopt32(argv, "abcd")
diff --git a/libpwdgrp/pwd_grp.c b/libpwdgrp/pwd_grp.c
index cefbc8a7e..c9bbc8bda 100644
--- a/libpwdgrp/pwd_grp.c
+++ b/libpwdgrp/pwd_grp.c
@@ -14,7 +14,7 @@
14 * exit using the atexit function to make valgrind happy. 14 * exit using the atexit function to make valgrind happy.
15 * 2) the passwd/group files: 15 * 2) the passwd/group files:
16 * a) must contain the expected number of fields (as per count of field 16 * a) must contain the expected number of fields (as per count of field
17 * delimeters ":") or we will complain with a error message. 17 * delimiters ":") or we will complain with a error message.
18 * b) leading and trailing whitespace in fields is stripped. 18 * b) leading and trailing whitespace in fields is stripped.
19 * c) some fields are not allowed to be empty (e.g. username, uid/gid), 19 * c) some fields are not allowed to be empty (e.g. username, uid/gid),
20 * and in this case NULL is returned and errno is set to EINVAL. 20 * and in this case NULL is returned and errno is set to EINVAL.
@@ -149,7 +149,7 @@ static struct statics *get_S(void)
149/* Internal functions */ 149/* Internal functions */
150 150
151/* Divide the passwd/group/shadow record in fields 151/* Divide the passwd/group/shadow record in fields
152 * by substituting the given delimeter 152 * by substituting the given delimiter
153 * e.g. ':' or ',' with '\0'. 153 * e.g. ':' or ',' with '\0'.
154 * Returns the number of fields found. 154 * Returns the number of fields found.
155 * Strips leading and trailing whitespace in fields. 155 * Strips leading and trailing whitespace in fields.
diff --git a/loginutils/cryptpw.c b/loginutils/cryptpw.c
index 696e169fc..3dc8232e0 100644
--- a/loginutils/cryptpw.c
+++ b/loginutils/cryptpw.c
@@ -64,7 +64,7 @@ OPTIONS
64 $1$. 64 $1$.
65-R, --rounds=NUMBER 65-R, --rounds=NUMBER
66 Use NUMBER rounds. This argument is ignored if the method 66 Use NUMBER rounds. This argument is ignored if the method
67 choosen does not support variable rounds. For the OpenBSD Blowfish 67 chosen does not support variable rounds. For the OpenBSD Blowfish
68 method this is the logarithm of the number of rounds. 68 method this is the logarithm of the number of rounds.
69-m, --method=TYPE 69-m, --method=TYPE
70 Compute the password using the TYPE method. If TYPE is 'help' 70 Compute the password using the TYPE method. If TYPE is 'help'
diff --git a/miscutils/inotifyd.c b/miscutils/inotifyd.c
index 601df6465..db8ddce92 100644
--- a/miscutils/inotifyd.c
+++ b/miscutils/inotifyd.c
@@ -12,7 +12,7 @@
12 * Use as follows: 12 * Use as follows:
13 * # inotifyd /user/space/agent dir/or/file/being/watched[:mask] ... 13 * # inotifyd /user/space/agent dir/or/file/being/watched[:mask] ...
14 * 14 *
15 * When a filesystem event matching the specified mask is occured on specified file (or directory) 15 * When a filesystem event matching the specified mask is occurred on specified file (or directory)
16 * a userspace agent is spawned and given the following parameters: 16 * a userspace agent is spawned and given the following parameters:
17 * $1. actual event(s) 17 * $1. actual event(s)
18 * $2. file (or directory) name 18 * $2. file (or directory) name
diff --git a/miscutils/less.c b/miscutils/less.c
index 0b0a9aed4..507e579c4 100644
--- a/miscutils/less.c
+++ b/miscutils/less.c
@@ -267,7 +267,7 @@ struct globals {
267/* flines[] are lines read from stdin, each in malloc'ed buffer. 267/* flines[] are lines read from stdin, each in malloc'ed buffer.
268 * Line numbers are stored as uint32_t prepended to each line. 268 * Line numbers are stored as uint32_t prepended to each line.
269 * Pointer is adjusted so that flines[i] points directly past 269 * Pointer is adjusted so that flines[i] points directly past
270 * line number. Accesor: */ 270 * line number. Accessor: */
271#define MEMPTR(p) ((char*)(p) - 4) 271#define MEMPTR(p) ((char*)(p) - 4)
272#define LINENO(p) (*(uint32_t*)((p) - 4)) 272#define LINENO(p) (*(uint32_t*)((p) - 4))
273 273
diff --git a/miscutils/time.c b/miscutils/time.c
index a73a837d8..2be750664 100644
--- a/miscutils/time.c
+++ b/miscutils/time.c
@@ -397,7 +397,7 @@ static void run_command(char *const *cmd, resource_t *resp)
397 } 397 }
398 398
399 /* Have signals kill the child but not self (if possible). */ 399 /* Have signals kill the child but not self (if possible). */
400//TODO: just block all sigs? and reenable them in the very end in main? 400//TODO: just block all sigs? and re-enable them in the very end in main?
401 interrupt_signal = signal(SIGINT, SIG_IGN); 401 interrupt_signal = signal(SIGINT, SIG_IGN);
402 quit_signal = signal(SIGQUIT, SIG_IGN); 402 quit_signal = signal(SIGQUIT, SIG_IGN);
403 403
diff --git a/modutils/Config.src b/modutils/Config.src
index 5f0b0cec4..9b76c83d2 100644
--- a/modutils/Config.src
+++ b/modutils/Config.src
@@ -75,7 +75,7 @@ config FEATURE_INSMOD_KSYMOOPS_SYMBOLS
75 depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE) 75 depends on FEATURE_2_4_MODULES && (INSMOD || MODPROBE)
76 help 76 help
77 By adding module symbols to the kernel symbol table, Oops messages 77 By adding module symbols to the kernel symbol table, Oops messages
78 occuring within kernel modules can be properly debugged. By enabling 78 occurring within kernel modules can be properly debugged. By enabling
79 this feature, module symbols will always be added to the kernel symbol 79 this feature, module symbols will always be added to the kernel symbol
80 table for proper debugging support. If you are not interested in 80 table for proper debugging support. If you are not interested in
81 Oops messages from kernel modules, say N. 81 Oops messages from kernel modules, say N.
diff --git a/modutils/modinfo.c b/modutils/modinfo.c
index aa641ad54..ead2cf16f 100644
--- a/modutils/modinfo.c
+++ b/modutils/modinfo.c
@@ -104,7 +104,7 @@ static void modinfo(const char *path, const char *version,
104 char *after_pattern; 104 char *after_pattern;
105 105
106 ptr = memchr(ptr, *pattern, len - (ptr - (char*)the_module)); 106 ptr = memchr(ptr, *pattern, len - (ptr - (char*)the_module));
107 if (ptr == NULL) /* no occurance left, done */ 107 if (ptr == NULL) /* no occurrence left, done */
108 break; 108 break;
109 after_pattern = is_prefixed_with(ptr, pattern); 109 after_pattern = is_prefixed_with(ptr, pattern);
110 if (after_pattern && *after_pattern == '=') { 110 if (after_pattern && *after_pattern == '=') {
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c
index 1285783d0..053a7df89 100644
--- a/modutils/modprobe-small.c
+++ b/modutils/modprobe-small.c
@@ -169,7 +169,7 @@ static char* find_keyword(char *ptr, size_t len, const char *word)
169 169
170 /* search for the first char in word */ 170 /* search for the first char in word */
171 ptr = memchr(ptr, word[0], len); 171 ptr = memchr(ptr, word[0], len);
172 if (ptr == NULL) /* no occurance left, done */ 172 if (ptr == NULL) /* no occurrence left, done */
173 break; 173 break;
174 after_word = is_prefixed_with(ptr, word); 174 after_word = is_prefixed_with(ptr, word);
175 if (after_word) 175 if (after_word)
@@ -411,7 +411,7 @@ static FAST_FUNC int fileAction(const char *pathname,
411 if (load_module(pathname, module_load_options) == 0) { 411 if (load_module(pathname, module_load_options) == 0) {
412 /* Load was successful, there is nothing else to do. 412 /* Load was successful, there is nothing else to do.
413 * This can happen ONLY for "top-level" module load, 413 * This can happen ONLY for "top-level" module load,
414 * not a dep, because deps dont do dirscan. */ 414 * not a dep, because deps don't do dirscan. */
415 exit(EXIT_SUCCESS); 415 exit(EXIT_SUCCESS);
416 } 416 }
417 } 417 }
diff --git a/networking/dnsd.c b/networking/dnsd.c
index 7be90018d..1b85618c6 100644
--- a/networking/dnsd.c
+++ b/networking/dnsd.c
@@ -360,7 +360,7 @@ RDATA a variable length string of octets that describes the resource.
360 360
361In order to reduce the size of messages, domain names coan be compressed. 361In order to reduce the size of messages, domain names coan be compressed.
362An entire domain name or a list of labels at the end of a domain name 362An entire domain name or a list of labels at the end of a domain name
363is replaced with a pointer to a prior occurance of the same name. 363is replaced with a pointer to a prior occurrence of the same name.
364 364
365The pointer takes the form of a two octet sequence: 365The pointer takes the form of a two octet sequence:
366 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ 366 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
diff --git a/networking/ifenslave.c b/networking/ifenslave.c
index 1cb765e23..070931209 100644
--- a/networking/ifenslave.c
+++ b/networking/ifenslave.c
@@ -55,7 +55,7 @@
55 * 55 *
56 * - 2003/03/18 - Tsippy Mendelson <tsippy.mendelson at intel dot com> and 56 * - 2003/03/18 - Tsippy Mendelson <tsippy.mendelson at intel dot com> and
57 * Shmulik Hen <shmulik.hen at intel dot com> 57 * Shmulik Hen <shmulik.hen at intel dot com>
58 * - Moved setting the slave's mac address and openning it, from 58 * - Moved setting the slave's mac address and opening it, from
59 * the application to the driver. This enables support of modes 59 * the application to the driver. This enables support of modes
60 * that need to use the unique mac address of each slave. 60 * that need to use the unique mac address of each slave.
61 * The driver also takes care of closing the slave and restoring its 61 * The driver also takes care of closing the slave and restoring its
diff --git a/networking/isrv.c b/networking/isrv.c
index 3673db715..97f5c6d4e 100644
--- a/networking/isrv.c
+++ b/networking/isrv.c
@@ -191,7 +191,7 @@ static void handle_accept(isrv_state_t *state, int fd)
191 DPRINTF("new_peer(%d)", newfd); 191 DPRINTF("new_peer(%d)", newfd);
192 n = state->new_peer(state, newfd); 192 n = state->new_peer(state, newfd);
193 if (n) 193 if (n)
194 remove_peer(state, n); /* unsuccesful peer start */ 194 remove_peer(state, n); /* unsuccessful peer start */
195} 195}
196 196
197static void handle_fd_set(isrv_state_t *state, fd_set *fds, int (*h)(int, void **)) 197static void handle_fd_set(isrv_state_t *state, fd_set *fds, int (*h)(int, void **))
diff --git a/networking/nc_bloaty.c b/networking/nc_bloaty.c
index f8c375362..3db784982 100644
--- a/networking/nc_bloaty.c
+++ b/networking/nc_bloaty.c
@@ -459,7 +459,7 @@ create new one, and bind() it. TODO */
459 so I don't feel bad. 459 so I don't feel bad.
460 The *real* question is why BFD sockets wasn't designed to allow listens for 460 The *real* question is why BFD sockets wasn't designed to allow listens for
461 connections *from* specific hosts/ports, instead of requiring the caller to 461 connections *from* specific hosts/ports, instead of requiring the caller to
462 accept the connection and then reject undesireable ones by closing. 462 accept the connection and then reject undesirable ones by closing.
463 In other words, we need a TCP MSG_PEEK. */ 463 In other words, we need a TCP MSG_PEEK. */
464 /* bbox: removed most of it */ 464 /* bbox: removed most of it */
465 lcladdr = xmalloc_sockaddr2dotted(&ouraddr->u.sa); 465 lcladdr = xmalloc_sockaddr2dotted(&ouraddr->u.sa);
@@ -502,7 +502,7 @@ static int udptest(void)
502 /* use the tcp-ping trick: try connecting to a normally refused port, which 502 /* use the tcp-ping trick: try connecting to a normally refused port, which
503 causes us to block for the time that SYN gets there and RST gets back. 503 causes us to block for the time that SYN gets there and RST gets back.
504 Not completely reliable, but it *does* mostly work. */ 504 Not completely reliable, but it *does* mostly work. */
505 /* Set a temporary connect timeout, so packet filtration doesnt cause 505 /* Set a temporary connect timeout, so packet filtration doesn't cause
506 us to hang forever, and hit it */ 506 us to hang forever, and hit it */
507 o_wait = 5; /* enough that we'll notice?? */ 507 o_wait = 5; /* enough that we'll notice?? */
508 rr = xsocket(ouraddr->u.sa.sa_family, SOCK_STREAM, 0); 508 rr = xsocket(ouraddr->u.sa.sa_family, SOCK_STREAM, 0);
diff --git a/networking/ntpd.c b/networking/ntpd.c
index 5cc71ca7a..73d27ac20 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -393,7 +393,7 @@ struct globals {
393 * too big and we will step. I observed it with -6. 393 * too big and we will step. I observed it with -6.
394 * 394 *
395 * OTOH, setting precision_sec far too small would result in futile 395 * OTOH, setting precision_sec far too small would result in futile
396 * attempts to syncronize to an unachievable precision. 396 * attempts to synchronize to an unachievable precision.
397 * 397 *
398 * -6 is 1/64 sec, -7 is 1/128 sec and so on. 398 * -6 is 1/64 sec, -7 is 1/128 sec and so on.
399 * -8 is 1/256 ~= 0.003906 (worked well for me --vda) 399 * -8 is 1/256 ~= 0.003906 (worked well for me --vda)
@@ -754,7 +754,7 @@ reset_peer_stats(peer_t *p, double offset)
754 bool small_ofs = fabs(offset) < STEP_THRESHOLD; 754 bool small_ofs = fabs(offset) < STEP_THRESHOLD;
755 755
756 /* Used to set p->filter_datapoint[i].d_dispersion = MAXDISP 756 /* Used to set p->filter_datapoint[i].d_dispersion = MAXDISP
757 * and clear reachable bits, but this proved to be too agressive: 757 * and clear reachable bits, but this proved to be too aggressive:
758 * after step (tested with suspending laptop for ~30 secs), 758 * after step (tested with suspending laptop for ~30 secs),
759 * this caused all previous data to be considered invalid, 759 * this caused all previous data to be considered invalid,
760 * making us needing to collect full ~8 datapoints per peer 760 * making us needing to collect full ~8 datapoints per peer
@@ -1715,7 +1715,7 @@ update_local_clock(peer_t *p)
1715 * It looks like Linux kernel's PLL is far too gentle in changing 1715 * It looks like Linux kernel's PLL is far too gentle in changing
1716 * tmx.freq in response to clock offset. Offset keeps growing 1716 * tmx.freq in response to clock offset. Offset keeps growing
1717 * and eventually we fall back to smaller poll intervals. 1717 * and eventually we fall back to smaller poll intervals.
1718 * We can make correction more agressive (about x2) by supplying 1718 * We can make correction more aggressive (about x2) by supplying
1719 * PLL time constant which is one less than the real one. 1719 * PLL time constant which is one less than the real one.
1720 * To be on a safe side, let's do it only if offset is significantly 1720 * To be on a safe side, let's do it only if offset is significantly
1721 * larger than jitter. 1721 * larger than jitter.
diff --git a/networking/ping.c b/networking/ping.c
index ef31e000b..94fb007f5 100644
--- a/networking/ping.c
+++ b/networking/ping.c
@@ -478,7 +478,7 @@ static void sendping_tail(void (*sp)(int), int size_pkt)
478 } else { /* -c NN, and all NN are sent (and no deadline) */ 478 } else { /* -c NN, and all NN are sent (and no deadline) */
479 /* Wait for the last ping to come back. 479 /* Wait for the last ping to come back.
480 * -W timeout: wait for a response in seconds. 480 * -W timeout: wait for a response in seconds.
481 * Affects only timeout in absense of any responses, 481 * Affects only timeout in absence of any responses,
482 * otherwise ping waits for two RTTs. */ 482 * otherwise ping waits for two RTTs. */
483 unsigned expire = timeout; 483 unsigned expire = timeout;
484 484
@@ -712,7 +712,7 @@ static void ping4(len_and_sockaddr *lsa)
712 712
713 if (opt_ttl != 0) { 713 if (opt_ttl != 0) {
714 setsockopt_int(pingsock, IPPROTO_IP, IP_TTL, opt_ttl); 714 setsockopt_int(pingsock, IPPROTO_IP, IP_TTL, opt_ttl);
715 /* above doesnt affect packets sent to bcast IP, so... */ 715 /* above doesn't affect packets sent to bcast IP, so... */
716 setsockopt_int(pingsock, IPPROTO_IP, IP_MULTICAST_TTL, opt_ttl); 716 setsockopt_int(pingsock, IPPROTO_IP, IP_MULTICAST_TTL, opt_ttl);
717 } 717 }
718 718
diff --git a/networking/tcpudp.c b/networking/tcpudp.c
index 3a6c68646..3ebe7d5fc 100644
--- a/networking/tcpudp.c
+++ b/networking/tcpudp.c
@@ -683,7 +683,7 @@ prog
683-E 683-E
684 no special environment. Do not set up TCP-related environment variables. 684 no special environment. Do not set up TCP-related environment variables.
685-v 685-v
686 verbose. Print verbose messsages to standard output. 686 verbose. Print verbose messages to standard output.
687-vv 687-vv
688 more verbose. Print more verbose messages to standard output. 688 more verbose. Print more verbose messages to standard output.
689 * no difference between -v and -vv in busyboxed version 689 * no difference between -v and -vv in busyboxed version
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 881512cf3..c45a0af1a 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -1460,7 +1460,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
1460 already_waited_sec += (unsigned)monotonic_sec() - timestamp_before_wait; 1460 already_waited_sec += (unsigned)monotonic_sec() - timestamp_before_wait;
1461 continue; 1461 continue;
1462 } 1462 }
1463 /* Else: an error occured, panic! */ 1463 /* Else: an error occurred, panic! */
1464 bb_perror_msg_and_die("select"); 1464 bb_perror_msg_and_die("select");
1465 } 1465 }
1466 } 1466 }
diff --git a/networking/udhcp/dhcprelay.c b/networking/udhcp/dhcprelay.c
index 7cb19b14e..ea84c0dd7 100644
--- a/networking/udhcp/dhcprelay.c
+++ b/networking/udhcp/dhcprelay.c
@@ -361,7 +361,7 @@ int dhcprelay_main(int argc, char **argv)
361// which the reply must be sent (i.e., the host or router interface 361// which the reply must be sent (i.e., the host or router interface
362// connected to the same network as the BOOTP client). If the content 362// connected to the same network as the BOOTP client). If the content
363// of the 'giaddr' field does not match one of the relay agent's 363// of the 'giaddr' field does not match one of the relay agent's
364// directly-connected logical interfaces, the BOOTREPLY messsage MUST be 364// directly-connected logical interfaces, the BOOTREPLY message MUST be
365// silently discarded. 365// silently discarded.
366 if (udhcp_read_interface(iface_list[i], NULL, &dhcp_msg.gateway_nip, NULL)) { 366 if (udhcp_read_interface(iface_list[i], NULL, &dhcp_msg.gateway_nip, NULL)) {
367 /* Fall back to our IP on server iface */ 367 /* Fall back to our IP on server iface */
diff --git a/networking/vconfig.c b/networking/vconfig.c
index f3020409a..854eca0a1 100644
--- a/networking/vconfig.c
+++ b/networking/vconfig.c
@@ -138,7 +138,7 @@ int vconfig_main(int argc, char **argv)
138 /* I suppose one could try to combine some of the function calls below, 138 /* I suppose one could try to combine some of the function calls below,
139 * since ifr.u.flag, ifr.u.VID, and ifr.u.skb_priority are all same-sized 139 * since ifr.u.flag, ifr.u.VID, and ifr.u.skb_priority are all same-sized
140 * (unsigned) int members of a unions. But because of the range checking, 140 * (unsigned) int members of a unions. But because of the range checking,
141 * doing so wouldn't save that much space and would also make maintainence 141 * doing so wouldn't save that much space and would also make maintenance
142 * more of a pain. 142 * more of a pain.
143 */ 143 */
144 if (ifr.cmd == SET_VLAN_FLAG_CMD) { 144 if (ifr.cmd == SET_VLAN_FLAG_CMD) {
diff --git a/shell/ash.c b/shell/ash.c
index e170bec2a..70ee15ed8 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -3849,7 +3849,7 @@ setjobctl(int on)
3849 } 3849 }
3850 /* fd is a tty at this point */ 3850 /* fd is a tty at this point */
3851 fd = fcntl(fd, F_DUPFD, 10); 3851 fd = fcntl(fd, F_DUPFD, 10);
3852 if (ofd >= 0) /* if it is "/dev/tty", close. If 0/1/2, dont */ 3852 if (ofd >= 0) /* if it is "/dev/tty", close. If 0/1/2, don't */
3853 close(ofd); 3853 close(ofd);
3854 if (fd < 0) 3854 if (fd < 0)
3855 goto out; /* F_DUPFD failed */ 3855 goto out; /* F_DUPFD failed */
@@ -6310,7 +6310,7 @@ static char *evalvar(char *p, int flags, struct strlist *var_str_list);
6310 * $@ like $* since no splitting will be performed. 6310 * $@ like $* since no splitting will be performed.
6311 * 6311 *
6312 * var_str_list (can be NULL) is a list of "VAR=val" strings which take precedence 6312 * var_str_list (can be NULL) is a list of "VAR=val" strings which take precedence
6313 * over shell varables. Needed for "A=a B=$A; echo $B" case - we use it 6313 * over shell variables. Needed for "A=a B=$A; echo $B" case - we use it
6314 * for correct expansion of "B=$A" word. 6314 * for correct expansion of "B=$A" word.
6315 */ 6315 */
6316static void 6316static void
@@ -6520,8 +6520,8 @@ scanright(char *startp, char *rmesc, char *rmescend,
6520 if (try2optimize) { 6520 if (try2optimize) {
6521 /* Maybe we can optimize this: 6521 /* Maybe we can optimize this:
6522 * if pattern ends with unescaped *, we can avoid checking 6522 * if pattern ends with unescaped *, we can avoid checking
6523 * shorter strings: if "foo*" doesnt match "raw_value_of_v", 6523 * shorter strings: if "foo*" doesn't match "raw_value_of_v",
6524 * it wont match truncated "raw_value_of_" strings too. 6524 * it won't match truncated "raw_value_of_" strings too.
6525 */ 6525 */
6526 unsigned plen = strlen(pattern); 6526 unsigned plen = strlen(pattern);
6527 /* Does it end with "*"? */ 6527 /* Does it end with "*"? */
@@ -7248,7 +7248,7 @@ expandmeta(struct strlist *str /*, int flag*/)
7248// Which means you need to unescape the string, right? Not so fast: 7248// Which means you need to unescape the string, right? Not so fast:
7249// if there _is_ a file named "file\?" (with backslash), it is returned 7249// if there _is_ a file named "file\?" (with backslash), it is returned
7250// as "file\?" too (whichever pattern you used to find it, say, "file*"). 7250// as "file\?" too (whichever pattern you used to find it, say, "file*").
7251// You DONT KNOW by looking at the result whether you need to unescape it. 7251// You DON'T KNOW by looking at the result whether you need to unescape it.
7252// 7252//
7253// Worse, globbing of "file\?" in a directory with two files, "file?" and "file\?", 7253// Worse, globbing of "file\?" in a directory with two files, "file?" and "file\?",
7254// returns "file\?" - which is WRONG: "file\?" pattern matches "file?" file. 7254// returns "file\?" - which is WRONG: "file\?" pattern matches "file?" file.
@@ -13088,7 +13088,7 @@ exportcmd(int argc UNUSED_PARAM, char **argv)
13088 } 13088 }
13089 flag_off = ~flag_off; 13089 flag_off = ~flag_off;
13090 13090
13091 /*if (opt_p_not_specified) - bash doesnt check this. Try "export -p NAME" */ 13091 /*if (opt_p_not_specified) - bash doesn't check this. Try "export -p NAME" */
13092 { 13092 {
13093 aptr = argptr; 13093 aptr = argptr;
13094 name = *aptr; 13094 name = *aptr;
diff --git a/shell/ash_test/ash-misc/unicode1.tests b/shell/ash_test/ash-misc/unicode1.tests
index 8788ba910..b8479cb41 100755
--- a/shell/ash_test/ash-misc/unicode1.tests
+++ b/shell/ash_test/ash-misc/unicode1.tests
@@ -5,7 +5,7 @@ a=`printf "\xcc\x80"`
5# Should print 1 5# Should print 1
6echo ${#a} 6echo ${#a}
7 7
8# A Japanese katakana charachter U+30a3 8# A Japanese katakana character U+30a3
9a=`printf "\xe3\x82\xa3"` 9a=`printf "\xe3\x82\xa3"`
10# Should print 1 10# Should print 1
11echo ${#a} 11echo ${#a}
diff --git a/shell/hush.c b/shell/hush.c
index 4123cc19e..e18920f50 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -1908,7 +1908,7 @@ static int check_and_run_traps(void)
1908 G.count_SIGCHLD++; 1908 G.count_SIGCHLD++;
1909//bb_error_msg("[%d] check_and_run_traps: G.count_SIGCHLD:%d G.handled_SIGCHLD:%d", getpid(), G.count_SIGCHLD, G.handled_SIGCHLD); 1909//bb_error_msg("[%d] check_and_run_traps: G.count_SIGCHLD:%d G.handled_SIGCHLD:%d", getpid(), G.count_SIGCHLD, G.handled_SIGCHLD);
1910 /* Note: 1910 /* Note:
1911 * We dont do 'last_sig = sig' here -> NOT returning this sig. 1911 * We don't do 'last_sig = sig' here -> NOT returning this sig.
1912 * This simplifies wait builtin a bit. 1912 * This simplifies wait builtin a bit.
1913 */ 1913 */
1914 break; 1914 break;
@@ -1917,7 +1917,7 @@ static int check_and_run_traps(void)
1917 debug_printf_exec("%s: sig:%d default handling is to ignore\n", __func__, sig); 1917 debug_printf_exec("%s: sig:%d default handling is to ignore\n", __func__, sig);
1918 /* SIGTERM, SIGQUIT, SIGTTIN, SIGTTOU, SIGTSTP */ 1918 /* SIGTERM, SIGQUIT, SIGTTIN, SIGTTOU, SIGTSTP */
1919 /* Note: 1919 /* Note:
1920 * We dont do 'last_sig = sig' here -> NOT returning this sig. 1920 * We don't do 'last_sig = sig' here -> NOT returning this sig.
1921 * Example: wait is not interrupted by TERM 1921 * Example: wait is not interrupted by TERM
1922 * in interactive shell, because TERM is ignored. 1922 * in interactive shell, because TERM is ignored.
1923 */ 1923 */
@@ -2280,7 +2280,7 @@ static void reinit_unicode_for_hush(void)
2280 * AT\ 2280 * AT\
2281 * H\ 2281 * H\
2282 * \ 2282 * \
2283 * It excercises a lot of corner cases. 2283 * It exercises a lot of corner cases.
2284 */ 2284 */
2285static void cmdedit_update_prompt(void) 2285static void cmdedit_update_prompt(void)
2286{ 2286{
@@ -5235,7 +5235,7 @@ static void o_addblock_duplicate_backslash(o_string *o, const char *str, int len
5235 /* And now we want to add { or } and continue: 5235 /* And now we want to add { or } and continue:
5236 * o_addchr(o, c); 5236 * o_addchr(o, c);
5237 * continue; 5237 * continue;
5238 * luckily, just falling throught achieves this. 5238 * luckily, just falling through achieves this.
5239 */ 5239 */
5240 } 5240 }
5241#endif 5241#endif
@@ -5830,7 +5830,7 @@ static NOINLINE int expand_vars_to_list(o_string *output, int n, char *arg)
5830 arg++; 5830 arg++;
5831 /* Can't just stuff it into output o_string, 5831 /* Can't just stuff it into output o_string,
5832 * expanded result may need to be globbed 5832 * expanded result may need to be globbed
5833 * and $IFS-splitted */ 5833 * and $IFS-split */
5834 debug_printf_subst("SUBST '%s' first_ch %x\n", arg, first_ch); 5834 debug_printf_subst("SUBST '%s' first_ch %x\n", arg, first_ch);
5835 G.last_exitcode = process_command_subs(&subst_result, arg); 5835 G.last_exitcode = process_command_subs(&subst_result, arg);
5836 debug_printf_subst("SUBST RES:%d '%s'\n", G.last_exitcode, subst_result.data); 5836 debug_printf_subst("SUBST RES:%d '%s'\n", G.last_exitcode, subst_result.data);
@@ -7320,7 +7320,7 @@ static int process_wait_result(struct pipe *fg_pipe, pid_t childpid, int status)
7320 /* There are still running processes in the fg_pipe */ 7320 /* There are still running processes in the fg_pipe */
7321 return -1; 7321 return -1;
7322 } 7322 }
7323 /* It wasnt in fg_pipe, look for process in bg pipes */ 7323 /* It wasn't in fg_pipe, look for process in bg pipes */
7324 } 7324 }
7325 7325
7326#if ENABLE_HUSH_JOB 7326#if ENABLE_HUSH_JOB
diff --git a/shell/hush_test/hush-misc/unicode1.tests b/shell/hush_test/hush-misc/unicode1.tests
index 8788ba910..b8479cb41 100755
--- a/shell/hush_test/hush-misc/unicode1.tests
+++ b/shell/hush_test/hush-misc/unicode1.tests
@@ -5,7 +5,7 @@ a=`printf "\xcc\x80"`
5# Should print 1 5# Should print 1
6echo ${#a} 6echo ${#a}
7 7
8# A Japanese katakana charachter U+30a3 8# A Japanese katakana character U+30a3
9a=`printf "\xe3\x82\xa3"` 9a=`printf "\xe3\x82\xa3"`
10# Should print 1 10# Should print 1
11echo ${#a} 11echo ${#a}
diff --git a/sysklogd/logread.c b/sysklogd/logread.c
index 1f0c6252d..71459941e 100644
--- a/sysklogd/logread.c
+++ b/sysklogd/logread.c
@@ -24,7 +24,7 @@
24//config: default y 24//config: default y
25//config: depends on LOGREAD 25//config: depends on LOGREAD
26//config: help 26//config: help
27//config: 'logread' ouput to slow serial terminals can have 27//config: 'logread' output to slow serial terminals can have
28//config: side effects on syslog because of the semaphore. 28//config: side effects on syslog because of the semaphore.
29//config: This option make logread to double buffer copy 29//config: This option make logread to double buffer copy
30//config: from circular buffer, minimizing semaphore 30//config: from circular buffer, minimizing semaphore
@@ -159,7 +159,7 @@ int logread_main(int argc UNUSED_PARAM, char **argv)
159 cur, shbuf_tail, shbuf_size); 159 cur, shbuf_tail, shbuf_size);
160 160
161 if (!(follow & 1)) { /* not -f */ 161 if (!(follow & 1)) { /* not -f */
162 /* if -F, "convert" it to -f, so that we dont 162 /* if -F, "convert" it to -f, so that we don't
163 * dump the entire buffer on each iteration 163 * dump the entire buffer on each iteration
164 */ 164 */
165 follow >>= 1; 165 follow >>= 1;
diff --git a/testsuite/readlink.tests b/testsuite/readlink.tests
index e9d8da0fc..27b52f6c4 100755
--- a/testsuite/readlink.tests
+++ b/testsuite/readlink.tests
@@ -29,7 +29,7 @@ pwd=`$pwd`
29testing "readlink -f on a file" "readlink -f ./$TESTFILE" "$pwd/$TESTFILE\n" "" "" 29testing "readlink -f on a file" "readlink -f ./$TESTFILE" "$pwd/$TESTFILE\n" "" ""
30testing "readlink -f on a link" "readlink -f ./$TESTLINK" "$pwd/$TESTFILE\n" "" "" 30testing "readlink -f on a link" "readlink -f ./$TESTLINK" "$pwd/$TESTFILE\n" "" ""
31testing "readlink -f on an invalid link" "readlink -f ./$FAILLINK" "" "" "" 31testing "readlink -f on an invalid link" "readlink -f ./$FAILLINK" "" "" ""
32testing "readlink -f on a wierd dir" "readlink -f $TESTDIR/../$TESTFILE" "$pwd/$TESTFILE\n" "" "" 32testing "readlink -f on a weird dir" "readlink -f $TESTDIR/../$TESTFILE" "$pwd/$TESTFILE\n" "" ""
33 33
34 34
35# clean up 35# clean up
diff --git a/util-linux/cal.c b/util-linux/cal.c
index af02608f0..8196619b0 100644
--- a/util-linux/cal.c
+++ b/util-linux/cal.c
@@ -35,7 +35,7 @@
35#include "libbb.h" 35#include "libbb.h"
36#include "unicode.h" 36#include "unicode.h"
37 37
38/* We often use "unsigned" intead of "int", it's easier to div on most CPUs */ 38/* We often use "unsigned" instead of "int", it's easier to div on most CPUs */
39 39
40#define THURSDAY 4 /* for reformation */ 40#define THURSDAY 4 /* for reformation */
41#define SATURDAY 6 /* 1 Jan 1 was a Saturday */ 41#define SATURDAY 6 /* 1 Jan 1 was a Saturday */
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index d65011a71..8cb908cb3 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -167,7 +167,7 @@ static void from_sys_clock(const char **pp_rtcname, int utc)
167 * On x86, even though code does set hw clock within <1ms of exact 167 * On x86, even though code does set hw clock within <1ms of exact
168 * whole seconds, apparently hw clock (at least on some machines) 168 * whole seconds, apparently hw clock (at least on some machines)
169 * doesn't reset internal fractional seconds to 0, 169 * doesn't reset internal fractional seconds to 0,
170 * making all this a pointless excercise. 170 * making all this a pointless exercise.
171 */ 171 */
172 /* If we see that we are N usec away from whole second, 172 /* If we see that we are N usec away from whole second,
173 * we'll sleep for N-ADJ usecs. ADJ corrects for the fact 173 * we'll sleep for N-ADJ usecs. ADJ corrects for the fact
diff --git a/util-linux/renice.c b/util-linux/renice.c
index 64213c680..4da3394a8 100644
--- a/util-linux/renice.c
+++ b/util-linux/renice.c
@@ -141,7 +141,7 @@ int renice_main(int argc UNUSED_PARAM, char **argv)
141 retval = EXIT_FAILURE; 141 retval = EXIT_FAILURE;
142 } 142 }
143 143
144 /* No need to check for errors outputing to stderr since, if it 144 /* No need to check for errors outputting to stderr since, if it
145 * was used, the HAD_ERROR label was reached and retval was set. */ 145 * was used, the HAD_ERROR label was reached and retval was set. */
146 146
147 return retval; 147 return retval;
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c
index aaee35a3e..f18e8a5ce 100644
--- a/util-linux/switch_root.c
+++ b/util-linux/switch_root.c
@@ -183,7 +183,7 @@ So there's a step that needs to be sort of atomic but can't be as a shell
183script. (You can work around this with static linking or very carefully laid 183script. (You can work around this with static linking or very carefully laid
184out paths and sequencing, but it's brittle, ugly, and non-obvious.) 184out paths and sequencing, but it's brittle, ugly, and non-obvious.)
185 185
1862) The "find | rm" bit will acually delete everything because the mount points 1862) The "find | rm" bit will actually delete everything because the mount points
187still show up (even if their contents don't), and rm -rf will then happily zap 187still show up (even if their contents don't), and rm -rf will then happily zap
188that. So the first line is an oversimplification of what you need to do _not_ 188that. So the first line is an oversimplification of what you need to do _not_
189to descend into other filesystems and delete their contents. 189to descend into other filesystems and delete their contents.
diff --git a/util-linux/volume_id/udf.c b/util-linux/volume_id/udf.c
index 613c80c86..fa5dccee7 100644
--- a/util-linux/volume_id/udf.c
+++ b/util-linux/volume_id/udf.c
@@ -137,7 +137,7 @@ anchor:
137 if (type != 2) /* TAG_ID_AVDP */ 137 if (type != 2) /* TAG_ID_AVDP */
138 goto found; 138 goto found;
139 139
140 /* get desriptor list address and block count */ 140 /* get descriptor list address and block count */
141 count = le32_to_cpu(vd->type.anchor.length) / bs; 141 count = le32_to_cpu(vd->type.anchor.length) / bs;
142 loc = le32_to_cpu(vd->type.anchor.location); 142 loc = le32_to_cpu(vd->type.anchor.location);
143 dbg("0x%x descriptors starting at logical secor 0x%x", count, loc); 143 dbg("0x%x descriptors starting at logical secor 0x%x", count, loc);