aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-04-14 17:51:38 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-04-14 17:51:38 +0000
commit91d2370c2c6a5a6a8214647730701d8e85e62441 (patch)
tree101230a8bd16a03319acc4b9b5fb33c33fb58672
parent599dbdd2f8da81fb29fd52efab56d9b8a299ff9b (diff)
downloadbusybox-w32-91d2370c2c6a5a6a8214647730701d8e85e62441.tar.gz
busybox-w32-91d2370c2c6a5a6a8214647730701d8e85e62441.tar.bz2
busybox-w32-91d2370c2c6a5a6a8214647730701d8e85e62441.zip
Larry Doolittle writes:
This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry git-svn-id: svn://busybox.net/trunk/busybox@8759 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--applets/applets.c2
-rw-r--r--archival/dpkg.c36
-rw-r--r--archival/gzip.c2
-rw-r--r--archival/libunarchive/data_extract_all.c2
-rw-r--r--archival/libunarchive/decompress_bunzip2.c36
-rw-r--r--archival/libunarchive/decompress_uncompress.c2
-rw-r--r--archival/libunarchive/decompress_unzip.c2
-rw-r--r--archival/libunarchive/get_header_tar.c2
-rw-r--r--archival/tar.c6
-rw-r--r--coreutils/cal.c2
-rw-r--r--coreutils/cmp.c2
-rw-r--r--coreutils/cut.c4
-rw-r--r--coreutils/date.c2
-rw-r--r--coreutils/df.c2
-rw-r--r--coreutils/echo.c2
-rw-r--r--coreutils/env.c2
-rw-r--r--coreutils/expr.c22
-rw-r--r--coreutils/logname.c2
-rw-r--r--coreutils/md5_sha1_sum.c2
-rw-r--r--editors/awk.c4
-rw-r--r--editors/sed.c2
-rw-r--r--editors/vi.c12
-rw-r--r--findutils/grep.c2
-rw-r--r--findutils/xargs.c2
-rw-r--r--include/usage.h2
-rw-r--r--libbb/create_icmp6_socket.c4
-rw-r--r--libbb/create_icmp_socket.c4
-rw-r--r--libbb/default_error_retval.c2
-rw-r--r--libbb/fclose_nonstdin.c2
-rw-r--r--libbb/isdirectory.c2
-rw-r--r--libbb/make_directory.c4
-rw-r--r--libbb/printf.c8
-rw-r--r--libbb/run_parts.c4
-rw-r--r--libbb/vfork_daemon_rexec.c4
-rw-r--r--libbb/warn_ignoring_args.c2
-rw-r--r--libbb/xconnect.c2
-rw-r--r--libpwdgrp/__getgrent.c2
-rw-r--r--libpwdgrp/initgroups.c2
-rw-r--r--loginutils/login.c2
-rw-r--r--miscutils/crond.c4
-rw-r--r--miscutils/crontab.c2
-rw-r--r--miscutils/devfsd.c2
-rw-r--r--miscutils/hdparm.c2
-rw-r--r--modutils/insmod.c10
-rw-r--r--networking/httpd.c16
-rw-r--r--networking/inetd.c4
-rw-r--r--networking/ipcalc.c4
-rw-r--r--networking/nameif.c4
-rw-r--r--networking/udhcp/clientpacket.c2
-rw-r--r--networking/udhcp/common.c2
-rw-r--r--networking/udhcp/common.h4
-rw-r--r--networking/udhcp/packet.c2
-rw-r--r--networking/udhcp/pidfile.c2
-rw-r--r--networking/udhcp/pidfile.h2
-rw-r--r--networking/udhcp/script.c2
-rw-r--r--networking/udhcp/serverpacket.c2
-rw-r--r--networking/udhcp/signalpipe.c4
-rw-r--r--networking/wget.c4
-rw-r--r--procps/top.c4
-rw-r--r--shell/ash.c26
-rw-r--r--shell/cmdedit.c8
-rw-r--r--shell/hush.c2
-rw-r--r--shell/msh.c2
-rw-r--r--sysklogd/syslogd.c2
-rw-r--r--util-linux/fdisk.c2
-rw-r--r--util-linux/fsck_minix.c6
-rw-r--r--util-linux/getopt.c6
-rw-r--r--util-linux/hwclock.c2
-rw-r--r--util-linux/mkfs_minix.c4
-rw-r--r--util-linux/mount.c2
70 files changed, 170 insertions, 170 deletions
diff --git a/applets/applets.c b/applets/applets.c
index d370e6a00..9db16b41d 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -475,7 +475,7 @@ static void parse_config_file(void)
475 475
476 /* Encountering configuration lines prior to seeing a 476 /* Encountering configuration lines prior to seeing a
477 * section header is treated as an error. This is how 477 * section header is treated as an error. This is how
478 * the old code worked, but it may not be desireable. 478 * the old code worked, but it may not be desirable.
479 * We may want to simply ignore such lines in case they 479 * We may want to simply ignore such lines in case they
480 * are used in some future version of busybox. */ 480 * are used in some future version of busybox. */
481 if (!section) { 481 if (!section) {
diff --git a/archival/dpkg.c b/archival/dpkg.c
index e192b4a62..c096518a2 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -1,6 +1,6 @@
1/* 1/*
2 * Mini dpkg implementation for busybox. 2 * Mini dpkg implementation for busybox.
3 * This is not meant as a replacemnt for dpkg 3 * This is not meant as a replacement for dpkg
4 * 4 *
5 * Written By Glenn McGrath with the help of others 5 * Written By Glenn McGrath with the help of others
6 * Copyright (C) 2001 by Glenn McGrath 6 * Copyright (C) 2001 by Glenn McGrath
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25/* 25/*
26 * Known difference between busybox dpkg and the official dpkg that i dont 26 * Known difference between busybox dpkg and the official dpkg that i don't
27 * consider important, its worth keeping a note of differences anyway, just to 27 * consider important, its worth keeping a note of differences anyway, just to
28 * make it easier to maintain. 28 * make it easier to maintain.
29 * - The first value for the Confflile: field isnt placed on a new line. 29 * - The first value for the Confflile: field isnt placed on a new line.
@@ -86,7 +86,7 @@ common_node_t *package_hashtable[PACKAGE_HASH_PRIME + 1];
86 86
87/* Currently it doesnt store packages that have state-status of not-installed 87/* Currently it doesnt store packages that have state-status of not-installed
88 * So it only really has to be the size of the maximum number of packages 88 * So it only really has to be the size of the maximum number of packages
89 * likely to be installed at any one time, so there is a bit of leaway here */ 89 * likely to be installed at any one time, so there is a bit of leeway here */
90#define STATUS_HASH_PRIME 8191 90#define STATUS_HASH_PRIME 8191
91typedef struct status_node_s { 91typedef struct status_node_s {
92 unsigned int package:14; /* has to fit PACKAGE_HASH_PRIME */ 92 unsigned int package:14; /* has to fit PACKAGE_HASH_PRIME */
@@ -94,7 +94,7 @@ typedef struct status_node_s {
94} status_node_t; 94} status_node_t;
95status_node_t *status_hashtable[STATUS_HASH_PRIME + 1]; 95status_node_t *status_hashtable[STATUS_HASH_PRIME + 1];
96 96
97/* Even numbers are for 'extras', like ored dependecies or null */ 97/* Even numbers are for 'extras', like ored dependencies or null */
98enum edge_type_e { 98enum edge_type_e {
99 EDGE_NULL = 0, 99 EDGE_NULL = 0,
100 EDGE_PRE_DEPENDS = 1, 100 EDGE_PRE_DEPENDS = 1,
@@ -148,7 +148,7 @@ void make_hash(const char *key, unsigned int *start, unsigned int *decrement, co
148 for(i = 1; i < len; i++) { 148 for(i = 1; i < len; i++) {
149 /* shifts the ascii based value and adds it to previous value 149 /* shifts the ascii based value and adds it to previous value
150 * shift amount is mod 24 because long int is 32 bit and data 150 * shift amount is mod 24 because long int is 32 bit and data
151 * to be shifted is 8, dont want to shift data to where it has 151 * to be shifted is 8, don't want to shift data to where it has
152 * no effect*/ 152 * no effect*/
153 hash_num += ((key[i] + key[i-1]) << ((key[i] * i) % 24)); 153 hash_num += ((key[i] + key[i-1]) << ((key[i] * i) % 24));
154 } 154 }
@@ -392,7 +392,7 @@ int search_package_hashtable(const unsigned int name, const unsigned int version
392/* 392/*
393 * This function searches through the entire package_hashtable looking 393 * This function searches through the entire package_hashtable looking
394 * for a package which provides "needle". It returns the index into 394 * for a package which provides "needle". It returns the index into
395 * the package_hashtable for the provining package. 395 * the package_hashtable for the providing package.
396 * 396 *
397 * needle is the index into name_hashtable of the package we are 397 * needle is the index into name_hashtable of the package we are
398 * looking for. 398 * looking for.
@@ -489,7 +489,7 @@ void add_split_dependencies(common_node_t *parent_node, const char *whole_line,
489 /* Skip leading ' ' or '(' */ 489 /* Skip leading ' ' or '(' */
490 version += strspn(field2, " "); 490 version += strspn(field2, " ");
491 version += strspn(version, "("); 491 version += strspn(version, "(");
492 /* Calculate length of any operator charactors */ 492 /* Calculate length of any operator characters */
493 offset_ch = strspn(version, "<=>"); 493 offset_ch = strspn(version, "<=>");
494 /* Determine operator */ 494 /* Determine operator */
495 if (offset_ch > 0) { 495 if (offset_ch > 0) {
@@ -636,7 +636,7 @@ unsigned int get_status(const unsigned int status_node, const int num)
636 for (i = 1; i < num; i++) { 636 for (i = 1; i < num; i++) {
637 /* skip past a word */ 637 /* skip past a word */
638 status_string += strcspn(status_string, " "); 638 status_string += strcspn(status_string, " ");
639 /* skip past the seperating spaces */ 639 /* skip past the separating spaces */
640 status_string += strspn(status_string, " "); 640 status_string += strspn(status_string, " ");
641 } 641 }
642 len = strcspn(status_string, " \n\0"); 642 len = strcspn(status_string, " \n\0");
@@ -955,13 +955,13 @@ void write_status_file(deb_file_t **deb_file)
955 fclose(new_status_file); 955 fclose(new_status_file);
956 956
957 957
958 /* Create a seperate backfile to dpkg */ 958 /* Create a separate backfile to dpkg */
959 if (rename("/var/lib/dpkg/status", "/var/lib/dpkg/status.udeb.bak") == -1) { 959 if (rename("/var/lib/dpkg/status", "/var/lib/dpkg/status.udeb.bak") == -1) {
960 struct stat stat_buf; 960 struct stat stat_buf;
961 if (stat("/var/lib/dpkg/status", &stat_buf) == 0) { 961 if (stat("/var/lib/dpkg/status", &stat_buf) == 0) {
962 bb_error_msg_and_die("Couldnt create backup status file"); 962 bb_error_msg_and_die("Couldnt create backup status file");
963 } 963 }
964 /* Its ok if renaming the status file fails becasue status 964 /* Its ok if renaming the status file fails because status
965 * file doesnt exist, maybe we are starting from scratch */ 965 * file doesnt exist, maybe we are starting from scratch */
966 bb_error_msg("No status file found, creating new one"); 966 bb_error_msg("No status file found, creating new one");
967 } 967 }
@@ -971,10 +971,10 @@ void write_status_file(deb_file_t **deb_file)
971 } 971 }
972} 972}
973 973
974/* This function returns TRUE if the given package can statisfy a 974/* This function returns TRUE if the given package can satisfy a
975 * dependency of type depend_type. 975 * dependency of type depend_type.
976 * 976 *
977 * A pre-depends is statisfied only if a package is already installed, 977 * A pre-depends is satisfied only if a package is already installed,
978 * which a regular depends can be satisfied by a package which we want 978 * which a regular depends can be satisfied by a package which we want
979 * to install. 979 * to install.
980 */ 980 */
@@ -1085,7 +1085,7 @@ int check_deps(deb_file_t **deb_file, int deb_start, int dep_max_count)
1085 for (i = 0; i < PACKAGE_HASH_PRIME; i++) { 1085 for (i = 0; i < PACKAGE_HASH_PRIME; i++) {
1086 int status_num = 0; 1086 int status_num = 0;
1087 int number_of_alternatives = 0; 1087 int number_of_alternatives = 0;
1088 const edge_t * root_of_alternatives; 1088 const edge_t * root_of_alternatives = NULL;
1089 const common_node_t *package_node = package_hashtable[i]; 1089 const common_node_t *package_node = package_hashtable[i];
1090 1090
1091 /* If the package node does not exist then this 1091 /* If the package node does not exist then this
@@ -1118,7 +1118,7 @@ int check_deps(deb_file_t **deb_file, int deb_start, int dep_max_count)
1118 continue; 1118 continue;
1119#endif 1119#endif
1120 1120
1121 /* This code is tested only for EDGE_DEPENDS, sine I 1121 /* This code is tested only for EDGE_DEPENDS, since I
1122 * have no suitable pre-depends available. There is no 1122 * have no suitable pre-depends available. There is no
1123 * reason that it shouldn't work though :-) 1123 * reason that it shouldn't work though :-)
1124 */ 1124 */
@@ -1211,7 +1211,7 @@ char **create_list(const char *filename)
1211 char *line = NULL; 1211 char *line = NULL;
1212 int count = 0; 1212 int count = 0;
1213 1213
1214 /* dont use [xw]fopen here, handle error ourself */ 1214 /* don't use [xw]fopen here, handle error ourself */
1215 list_stream = fopen(filename, "r"); 1215 list_stream = fopen(filename, "r");
1216 if (list_stream == NULL) { 1216 if (list_stream == NULL) {
1217 return(NULL); 1217 return(NULL);
@@ -1385,7 +1385,7 @@ void remove_package(const unsigned int package_num, int noisy)
1385 bb_error_msg_and_die("script failed, prerm failure"); 1385 bb_error_msg_and_die("script failed, prerm failure");
1386 } 1386 }
1387 1387
1388 /* Create a list of files to remove, and a seperate list of those to keep */ 1388 /* Create a list of files to remove, and a separate list of those to keep */
1389 sprintf(list_name, "/var/lib/dpkg/info/%s.list", package_name); 1389 sprintf(list_name, "/var/lib/dpkg/info/%s.list", package_name);
1390 remove_files = create_list(list_name); 1390 remove_files = create_list(list_name);
1391 1391
@@ -1480,7 +1480,7 @@ static void init_archive_deb_control(archive_handle_t *ar_handle)
1480 tar_handle = init_handle(); 1480 tar_handle = init_handle();
1481 tar_handle->src_fd = ar_handle->src_fd; 1481 tar_handle->src_fd = ar_handle->src_fd;
1482 1482
1483 /* We dont care about data.tar.* or debian-binary, just control.tar.* */ 1483 /* We don't care about data.tar.* or debian-binary, just control.tar.* */
1484#ifdef CONFIG_FEATURE_DEB_TAR_GZ 1484#ifdef CONFIG_FEATURE_DEB_TAR_GZ
1485 ar_handle->accept = llist_add_to(NULL, "control.tar.gz"); 1485 ar_handle->accept = llist_add_to(NULL, "control.tar.gz");
1486#endif 1486#endif
@@ -1502,7 +1502,7 @@ static void init_archive_deb_data(archive_handle_t *ar_handle)
1502 tar_handle = init_handle(); 1502 tar_handle = init_handle();
1503 tar_handle->src_fd = ar_handle->src_fd; 1503 tar_handle->src_fd = ar_handle->src_fd;
1504 1504
1505 /* We dont care about control.tar.* or debian-binary, just data.tar.* */ 1505 /* We don't care about control.tar.* or debian-binary, just data.tar.* */
1506#ifdef CONFIG_FEATURE_DEB_TAR_GZ 1506#ifdef CONFIG_FEATURE_DEB_TAR_GZ
1507 ar_handle->accept = llist_add_to(NULL, "data.tar.gz"); 1507 ar_handle->accept = llist_add_to(NULL, "data.tar.gz");
1508#endif 1508#endif
diff --git a/archival/gzip.c b/archival/gzip.c
index 1708ac1a1..d494aa30e 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -632,7 +632,7 @@ static void copy_block(char *buf, unsigned len, int header)
632 * However the F&G algorithm may be faster for some highly redundant 632 * However the F&G algorithm may be faster for some highly redundant
633 * files if the parameter max_chain_length (described below) is too large. 633 * files if the parameter max_chain_length (described below) is too large.
634 * 634 *
635 * ACKNOWLEDGEMENTS 635 * ACKNOWLEDGMENTS
636 * 636 *
637 * The idea of lazy evaluation of matches is due to Jan-Mark Wams, and 637 * The idea of lazy evaluation of matches is due to Jan-Mark Wams, and
638 * I found it in 'freeze' written by Leonid Broukhis. 638 * I found it in 'freeze' written by Leonid Broukhis.
diff --git a/archival/libunarchive/data_extract_all.c b/archival/libunarchive/data_extract_all.c
index a9a3a93d8..52edaa182 100644
--- a/archival/libunarchive/data_extract_all.c
+++ b/archival/libunarchive/data_extract_all.c
@@ -66,7 +66,7 @@ extern void data_extract_all(archive_handle_t *archive_handle)
66 } 66 }
67 } 67 }
68 68
69 /* Handle hard links seperately 69 /* Handle hard links separately
70 * We identified hard links as regular files of size 0 with a symlink */ 70 * We identified hard links as regular files of size 0 with a symlink */
71 if (S_ISREG(file_header->mode) && (file_header->link_name) && (file_header->size == 0)) { 71 if (S_ISREG(file_header->mode) && (file_header->link_name) && (file_header->size == 0)) {
72 /* hard link */ 72 /* hard link */
diff --git a/archival/libunarchive/decompress_bunzip2.c b/archival/libunarchive/decompress_bunzip2.c
index af165336e..4b8ceb804 100644
--- a/archival/libunarchive/decompress_bunzip2.c
+++ b/archival/libunarchive/decompress_bunzip2.c
@@ -13,7 +13,7 @@
13/* 13/*
14 Size and speed optimizations by Manuel Novoa III (mjn3@codepoet.org). 14 Size and speed optimizations by Manuel Novoa III (mjn3@codepoet.org).
15 15
16 More efficient reading of huffman codes, a streamlined read_bunzip() 16 More efficient reading of Huffman codes, a streamlined read_bunzip()
17 function, and various other tweaks. In (limited) tests, approximately 17 function, and various other tweaks. In (limited) tests, approximately
18 20% faster than bzcat on x86 and about 10% faster on arm. 18 20% faster than bzcat on x86 and about 10% faster on arm.
19 19
@@ -49,10 +49,10 @@
49 49
50#include "libbb.h" 50#include "libbb.h"
51 51
52/* Constants for huffman coding */ 52/* Constants for Huffman coding */
53#define MAX_GROUPS 6 53#define MAX_GROUPS 6
54#define GROUP_SIZE 50 /* 64 would have been more efficient */ 54#define GROUP_SIZE 50 /* 64 would have been more efficient */
55#define MAX_HUFCODE_BITS 20 /* Longest huffman code allowed */ 55#define MAX_HUFCODE_BITS 20 /* Longest Huffman code allowed */
56#define MAX_SYMBOLS 258 /* 256 literals + RUNA + RUNB */ 56#define MAX_SYMBOLS 258 /* 256 literals + RUNA + RUNB */
57#define SYMBOL_RUNA 0 57#define SYMBOL_RUNA 0
58#define SYMBOL_RUNB 1 58#define SYMBOL_RUNB 1
@@ -70,7 +70,7 @@
70/* Other housekeeping constants */ 70/* Other housekeeping constants */
71#define IOBUF_SIZE 4096 71#define IOBUF_SIZE 4096
72 72
73/* This is what we know about each huffman coding group */ 73/* This is what we know about each Huffman coding group */
74struct group_data { 74struct group_data {
75 /* We have an extra slot at the end of limit[] for a sentinal value. */ 75 /* We have an extra slot at the end of limit[] for a sentinal value. */
76 int limit[MAX_HUFCODE_BITS+1],base[MAX_HUFCODE_BITS],permute[MAX_SYMBOLS]; 76 int limit[MAX_HUFCODE_BITS+1],base[MAX_HUFCODE_BITS],permute[MAX_SYMBOLS];
@@ -92,7 +92,7 @@ typedef struct {
92 unsigned int *dbuf, dbufSize; 92 unsigned int *dbuf, dbufSize;
93 /* These things are a bit too big to go on the stack */ 93 /* These things are a bit too big to go on the stack */
94 unsigned char selectors[32768]; /* nSelectors=15 bits */ 94 unsigned char selectors[32768]; /* nSelectors=15 bits */
95 struct group_data groups[MAX_GROUPS]; /* huffman coding tables */ 95 struct group_data groups[MAX_GROUPS]; /* Huffman coding tables */
96 /* For I/O error handling */ 96 /* For I/O error handling */
97 jmp_buf jmpbuf; 97 jmp_buf jmpbuf;
98} bunzip_data; 98} bunzip_data;
@@ -172,10 +172,10 @@ static int get_next_block(bunzip_data *bd)
172 if(k&(1<<(15-j))) symToByte[symTotal++]=(16*i)+j; 172 if(k&(1<<(15-j))) symToByte[symTotal++]=(16*i)+j;
173 } 173 }
174 } 174 }
175 /* How many different huffman coding groups does this block use? */ 175 /* How many different Huffman coding groups does this block use? */
176 groupCount=get_bits(bd,3); 176 groupCount=get_bits(bd,3);
177 if (groupCount<2 || groupCount>MAX_GROUPS) return RETVAL_DATA_ERROR; 177 if (groupCount<2 || groupCount>MAX_GROUPS) return RETVAL_DATA_ERROR;
178 /* nSelectors: Every GROUP_SIZE many symbols we select a new huffman coding 178 /* nSelectors: Every GROUP_SIZE many symbols we select a new Huffman coding
179 group. Read in the group selector list, which is stored as MTF encoded 179 group. Read in the group selector list, which is stored as MTF encoded
180 bit runs. (MTF=Move To Front, as each value is used it's moved to the 180 bit runs. (MTF=Move To Front, as each value is used it's moved to the
181 start of the list.) */ 181 start of the list.) */
@@ -189,13 +189,13 @@ static int get_next_block(bunzip_data *bd)
189 for(;j;j--) mtfSymbol[j] = mtfSymbol[j-1]; 189 for(;j;j--) mtfSymbol[j] = mtfSymbol[j-1];
190 mtfSymbol[0]=selectors[i]=uc; 190 mtfSymbol[0]=selectors[i]=uc;
191 } 191 }
192 /* Read the huffman coding tables for each group, which code for symTotal 192 /* Read the Huffman coding tables for each group, which code for symTotal
193 literal symbols, plus two run symbols (RUNA, RUNB) */ 193 literal symbols, plus two run symbols (RUNA, RUNB) */
194 symCount=symTotal+2; 194 symCount=symTotal+2;
195 for (j=0; j<groupCount; j++) { 195 for (j=0; j<groupCount; j++) {
196 unsigned char length[MAX_SYMBOLS],temp[MAX_HUFCODE_BITS+1]; 196 unsigned char length[MAX_SYMBOLS],temp[MAX_HUFCODE_BITS+1];
197 int minLen, maxLen, pp; 197 int minLen, maxLen, pp;
198 /* Read huffman code lengths for each symbol. They're stored in 198 /* Read Huffman code lengths for each symbol. They're stored in
199 a way similar to mtf; record a starting value for the first symbol, 199 a way similar to mtf; record a starting value for the first symbol,
200 and an offset from the previous value for everys symbol after that. 200 and an offset from the previous value for everys symbol after that.
201 (Subtracting 1 before the loop and then adding it back at the end is 201 (Subtracting 1 before the loop and then adding it back at the end is
@@ -228,12 +228,12 @@ static int get_next_block(bunzip_data *bd)
228 } 228 }
229 /* Calculate permute[], base[], and limit[] tables from length[]. 229 /* Calculate permute[], base[], and limit[] tables from length[].
230 * 230 *
231 * permute[] is the lookup table for converting huffman coded symbols 231 * permute[] is the lookup table for converting Huffman coded symbols
232 * into decoded symbols. base[] is the amount to subtract from the 232 * into decoded symbols. base[] is the amount to subtract from the
233 * value of a huffman symbol of a given length when using permute[]. 233 * value of a Huffman symbol of a given length when using permute[].
234 * 234 *
235 * limit[] indicates the largest numerical value a symbol with a given 235 * limit[] indicates the largest numerical value a symbol with a given
236 * number of bits can have. This is how the huffman codes can vary in 236 * number of bits can have. This is how the Huffman codes can vary in
237 * length: each code with a value>limit[length] needs another bit. 237 * length: each code with a value>limit[length] needs another bit.
238 */ 238 */
239 hufGroup=bd->groups+j; 239 hufGroup=bd->groups+j;
@@ -275,7 +275,7 @@ static int get_next_block(bunzip_data *bd)
275 base[minLen]=0; 275 base[minLen]=0;
276 } 276 }
277 /* We've finished reading and digesting the block header. Now read this 277 /* We've finished reading and digesting the block header. Now read this
278 block's huffman coded symbols from the file and undo the huffman coding 278 block's Huffman coded symbols from the file and undo the Huffman coding
279 and run length encoding, saving the result into dbuf[dbufCount++]=uc */ 279 and run length encoding, saving the result into dbuf[dbufCount++]=uc */
280 280
281 /* Initialize symbol occurrence counters and symbol Move To Front table */ 281 /* Initialize symbol occurrence counters and symbol Move To Front table */
@@ -286,7 +286,7 @@ static int get_next_block(bunzip_data *bd)
286 /* Loop through compressed symbols. */ 286 /* Loop through compressed symbols. */
287 runPos=dbufCount=symCount=selector=0; 287 runPos=dbufCount=symCount=selector=0;
288 for(;;) { 288 for(;;) {
289 /* Determine which huffman coding group to use. */ 289 /* Determine which Huffman coding group to use. */
290 if(!(symCount--)) { 290 if(!(symCount--)) {
291 symCount=GROUP_SIZE-1; 291 symCount=GROUP_SIZE-1;
292 if(selector>=nSelectors) return RETVAL_DATA_ERROR; 292 if(selector>=nSelectors) return RETVAL_DATA_ERROR;
@@ -294,7 +294,7 @@ static int get_next_block(bunzip_data *bd)
294 base=hufGroup->base-1; 294 base=hufGroup->base-1;
295 limit=hufGroup->limit-1; 295 limit=hufGroup->limit-1;
296 } 296 }
297 /* Read next huffman-coded symbol. */ 297 /* Read next Huffman-coded symbol. */
298 /* Note: It is far cheaper to read maxLen bits and back up than it is 298 /* Note: It is far cheaper to read maxLen bits and back up than it is
299 to read minLen bits and then an additional bit at a time, testing 299 to read minLen bits and then an additional bit at a time, testing
300 as we go. Because there is a trailing last block (with file CRC), 300 as we go. Because there is a trailing last block (with file CRC),
@@ -383,7 +383,7 @@ got_huff_bits:
383 byteCount[uc]++; 383 byteCount[uc]++;
384 dbuf[dbufCount++] = (unsigned int)uc; 384 dbuf[dbufCount++] = (unsigned int)uc;
385 } 385 }
386 /* At this point, we've read all the huffman-coded symbols (and repeated 386 /* At this point, we've read all the Huffman-coded symbols (and repeated
387 runs) for this block from the input stream, and decoded them into the 387 runs) for this block from the input stream, and decoded them into the
388 intermediate buffer. There are dbufCount many decoded bytes in dbuf[]. 388 intermediate buffer. There are dbufCount many decoded bytes in dbuf[].
389 Now undo the Burrows-Wheeler transform on dbuf. 389 Now undo the Burrows-Wheeler transform on dbuf.
@@ -439,7 +439,7 @@ static int read_bunzip(bunzip_data *bd, char *outbuf, int len)
439 439
440 /* We will always have pending decoded data to write into the output 440 /* We will always have pending decoded data to write into the output
441 buffer unless this is the very first call (in which case we haven't 441 buffer unless this is the very first call (in which case we haven't
442 huffman-decoded a block into the intermediate buffer yet). */ 442 Huffman-decoded a block into the intermediate buffer yet). */
443 443
444 if (bd->writeCopies) { 444 if (bd->writeCopies) {
445 /* Inside the loop, writeCopies means extra copies (beyond 1) */ 445 /* Inside the loop, writeCopies means extra copies (beyond 1) */
@@ -495,7 +495,7 @@ decode_next_byte:
495 } 495 }
496 } 496 }
497 497
498 /* Refill the intermediate buffer by huffman-decoding next block of input */ 498 /* Refill the intermediate buffer by Huffman-decoding next block of input */
499 /* (previous is just a convenient unused temp variable here) */ 499 /* (previous is just a convenient unused temp variable here) */
500 previous=get_next_block(bd); 500 previous=get_next_block(bd);
501 if(previous) { 501 if(previous) {
diff --git a/archival/libunarchive/decompress_uncompress.c b/archival/libunarchive/decompress_uncompress.c
index ddf293fd6..e39872cbe 100644
--- a/archival/libunarchive/decompress_uncompress.c
+++ b/archival/libunarchive/decompress_uncompress.c
@@ -30,7 +30,7 @@
30#include <string.h> 30#include <string.h>
31#include <unistd.h> 31#include <unistd.h>
32 32
33/* Defailt input buffer size */ 33/* Default input buffer size */
34#define IBUFSIZ 2048 34#define IBUFSIZ 2048
35 35
36/* Default output buffer size */ 36/* Default output buffer size */
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c
index a436db191..35fcfeec8 100644
--- a/archival/libunarchive/decompress_unzip.c
+++ b/archival/libunarchive/decompress_unzip.c
@@ -892,7 +892,7 @@ static int inflate_get_next_window(void)
892 /* Doesnt get here */ 892 /* Doesnt get here */
893} 893}
894 894
895/* Initialise bytebuffer, be carefull not to overfill the buffer */ 895/* Initialise bytebuffer, be careful not to overfill the buffer */
896extern void inflate_init(unsigned int bufsize) 896extern void inflate_init(unsigned int bufsize)
897{ 897{
898 /* Set the bytebuffer size, default is same as gunzip_wsize */ 898 /* Set the bytebuffer size, default is same as gunzip_wsize */
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c
index c6ebdae80..33f19c60a 100644
--- a/archival/libunarchive/get_header_tar.c
+++ b/archival/libunarchive/get_header_tar.c
@@ -14,7 +14,7 @@
14 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 14 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15 * 15 *
16 * FIXME: 16 * FIXME:
17 * In privelidged mode if uname and gname map to a uid amd gid then use the 17 * In privileged mode if uname and gname map to a uid and gid then use the
18 * mapped value instead of the uid/gid values in tar header 18 * mapped value instead of the uid/gid values in tar header
19 * 19 *
20 * References: 20 * References:
diff --git a/archival/tar.c b/archival/tar.c
index 279cbfd46..8d2ccca77 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -2,11 +2,11 @@
2/* 2/*
3 * Mini tar implementation for busybox 3 * Mini tar implementation for busybox
4 * 4 *
5 * Modifed to use common extraction code used by ar, cpio, dpkg-deb, dpkg 5 * Modified to use common extraction code used by ar, cpio, dpkg-deb, dpkg
6 * Glenn McGrath <bug1@optushome.com.au> 6 * Glenn McGrath <bug1@optushome.com.au>
7 * 7 *
8 * Note, that as of BusyBox-0.43, tar has been completely rewritten from the 8 * Note, that as of BusyBox-0.43, tar has been completely rewritten from the
9 * ground up. It still has remnents of the old code lying about, but it is 9 * ground up. It still has remnants of the old code lying about, but it is
10 * very different now (i.e., cleaner, less global variables, etc.) 10 * very different now (i.e., cleaner, less global variables, etc.)
11 * 11 *
12 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 12 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
@@ -796,7 +796,7 @@ int tar_main(int argc, char **argv)
796 } 796 }
797 797
798 /* Setup an array of filenames to work with */ 798 /* Setup an array of filenames to work with */
799 /* TODO: This is the same as in ar, seperate function ? */ 799 /* TODO: This is the same as in ar, separate function ? */
800 while (optind < argc) { 800 while (optind < argc) {
801 char *filename_ptr = last_char_is(argv[optind], '/'); 801 char *filename_ptr = last_char_is(argv[optind], '/');
802 if (filename_ptr) { 802 if (filename_ptr) {
diff --git a/coreutils/cal.c b/coreutils/cal.c
index cd7be0d30..93c5692d0 100644
--- a/coreutils/cal.c
+++ b/coreutils/cal.c
@@ -65,7 +65,7 @@ static const char sep1752[] = {
65 65
66static int julian; 66static int julian;
67 67
68/* leap year -- account for gregorian reformation in 1752 */ 68/* leap year -- account for Gregorian reformation in 1752 */
69#define leap_year(yr) \ 69#define leap_year(yr) \
70 ((yr) <= 1752 ? !((yr) % 4) : \ 70 ((yr) <= 1752 ? !((yr) % 4) : \
71 (!((yr) % 4) && ((yr) % 100)) || !((yr) % 400)) 71 (!((yr) % 4) && ((yr) % 100)) || !((yr) % 400))
diff --git a/coreutils/cmp.c b/coreutils/cmp.c
index 43dbc842f..d0fc662a5 100644
--- a/coreutils/cmp.c
+++ b/coreutils/cmp.c
@@ -27,7 +27,7 @@
27 * 27 *
28 * Original version majorly reworked for SUSv3 compliance, bug fixes, and 28 * Original version majorly reworked for SUSv3 compliance, bug fixes, and
29 * size optimizations. Changes include: 29 * size optimizations. Changes include:
30 * 1) Now correctly distingusishes between errors and actual file differences. 30 * 1) Now correctly distinguishes between errors and actual file differences.
31 * 2) Proper handling of '-' args. 31 * 2) Proper handling of '-' args.
32 * 3) Actual error checking of i/o. 32 * 3) Actual error checking of i/o.
33 * 4) Accept SUSv3 -l option. Note that we use the slightly nicer gnu format 33 * 4) Accept SUSv3 -l option. Note that we use the slightly nicer gnu format
diff --git a/coreutils/cut.c b/coreutils/cut.c
index d9f8161f3..d26e80eee 100644
--- a/coreutils/cut.c
+++ b/coreutils/cut.c
@@ -70,7 +70,7 @@ static int cmpfunc(const void *a, const void *b)
70/* 70/*
71 * parse_lists() - parses a list and puts values into startpos and endpos. 71 * parse_lists() - parses a list and puts values into startpos and endpos.
72 * valid list formats: N, N-, N-M, -M 72 * valid list formats: N, N-, N-M, -M
73 * more than one list can be seperated by commas 73 * more than one list can be separated by commas
74 */ 74 */
75static void parse_lists(char *lists) 75static void parse_lists(char *lists)
76{ 76{
@@ -79,7 +79,7 @@ static void parse_lists(char *lists)
79 char *junk; 79 char *junk;
80 int s = 0, e = 0; 80 int s = 0, e = 0;
81 81
82 /* take apart the lists, one by one (they are seperated with commas */ 82 /* take apart the lists, one by one (they are separated with commas */
83 while ((ltok = strsep(&lists, ",")) != NULL) { 83 while ((ltok = strsep(&lists, ",")) != NULL) {
84 84
85 /* it's actually legal to pass an empty list */ 85 /* it's actually legal to pass an empty list */
diff --git a/coreutils/date.c b/coreutils/date.c
index 6edca5b15..26251c37b 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -42,7 +42,7 @@
42/* Input parsing code is always bulky - used heavy duty libc stuff as 42/* Input parsing code is always bulky - used heavy duty libc stuff as
43 much as possible, missed out a lot of bounds checking */ 43 much as possible, missed out a lot of bounds checking */
44 44
45/* Default input handling to save suprising some people */ 45/* Default input handling to save surprising some people */
46 46
47static struct tm *date_conv_time(struct tm *tm_time, const char *t_string) 47static struct tm *date_conv_time(struct tm *tm_time, const char *t_string)
48{ 48{
diff --git a/coreutils/df.c b/coreutils/df.c
index 9d53f2bc4..cff69fe1a 100644
--- a/coreutils/df.c
+++ b/coreutils/df.c
@@ -27,7 +27,7 @@
27/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org) 27/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org)
28 * 28 *
29 * Size reduction. Removed floating point dependency. Added error checking 29 * Size reduction. Removed floating point dependency. Added error checking
30 * on output. Output stats on 0-sized filesystems if specificly listed on 30 * on output. Output stats on 0-sized filesystems if specifically listed on
31 * the command line. Properly round *-blocks, Used, and Available quantities. 31 * the command line. Properly round *-blocks, Used, and Available quantities.
32 */ 32 */
33 33
diff --git a/coreutils/echo.c b/coreutils/echo.c
index 26a6fbf81..539640fb0 100644
--- a/coreutils/echo.c
+++ b/coreutils/echo.c
@@ -27,7 +27,7 @@
27 27
28/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org) 28/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org)
29 * 29 *
30 * Because of behavioral differences, implemented configureable SUSv3 30 * Because of behavioral differences, implemented configurable SUSv3
31 * or 'fancy' gnu-ish behaviors. Also, reduced size and fixed bugs. 31 * or 'fancy' gnu-ish behaviors. Also, reduced size and fixed bugs.
32 * 1) In handling '\c' escape, the previous version only suppressed the 32 * 1) In handling '\c' escape, the previous version only suppressed the
33 * trailing newline. SUSv3 specifies _no_ output after '\c'. 33 * trailing newline. SUSv3 specifies _no_ output after '\c'.
diff --git a/coreutils/env.c b/coreutils/env.c
index 1e95f819c..a63f421d7 100644
--- a/coreutils/env.c
+++ b/coreutils/env.c
@@ -35,7 +35,7 @@
35 35
36/* 36/*
37 * Modified by Vladimir Oleynik <andersen@codepoet.org> (C) 2003 37 * Modified by Vladimir Oleynik <andersen@codepoet.org> (C) 2003
38 * - corretion "-" option usage 38 * - correct "-" option usage
39 * - multiple "-u unsetenv" support 39 * - multiple "-u unsetenv" support
40 * - GNU long option support 40 * - GNU long option support
41 * - save errno after exec failed before bb_perror_msg() 41 * - save errno after exec failed before bb_perror_msg()
diff --git a/coreutils/expr.c b/coreutils/expr.c
index e5816371a..cbbd4cd03 100644
--- a/coreutils/expr.c
+++ b/coreutils/expr.c
@@ -9,24 +9,24 @@
9 * Copyright (c) 2000 Edward Betts <edward@debian.org>. 9 * Copyright (c) 2000 Edward Betts <edward@debian.org>.
10 * Aug 2003 Vladimir Oleynik - reduced 464 bytes. 10 * Aug 2003 Vladimir Oleynik - reduced 464 bytes.
11 * 11 *
12 * this program is free software; you can redistribute it and/or modify 12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the gnu general public license as published by 13 * it under the terms of the GNU General Public License as published by
14 * the free software foundation; either version 2 of the license, or 14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version. 15 * (at your option) any later version.
16 * 16 *
17 * this program is distributed in the hope that it will be useful, 17 * This program is distributed in the hope that it will be useful,
18 * but without any warranty; without even the implied warranty of 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * merchantability or fitness for a particular purpose. see the gnu 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * general public license for more details. 20 * General Public License for more details.
21 * 21 *
22 * you should have received a copy of the gnu general public license 22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the free software 23 * along with this program; if not, write to the Free Software
24 * foundation, inc., 59 temple place, suite 330, boston, ma 02111-1307 usa 24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 * 25 *
26 */ 26 */
27 27
28/* This program evaluates expressions. Each token (operator, operand, 28/* This program evaluates expressions. Each token (operator, operand,
29 * parenthesis) of the expression must be a seperate argument. The 29 * parenthesis) of the expression must be a separate argument. The
30 * parser used is a reasonably general one, though any incarnation of 30 * parser used is a reasonably general one, though any incarnation of
31 * it is language-specific. It is especially nice for expressions. 31 * it is language-specific. It is especially nice for expressions.
32 * 32 *
diff --git a/coreutils/logname.c b/coreutils/logname.c
index 9cedff027..ca5eb41cf 100644
--- a/coreutils/logname.c
+++ b/coreutils/logname.c
@@ -30,7 +30,7 @@
30 * is _not_ the same. Erik apparently made this change almost 3 years 30 * is _not_ the same. Erik apparently made this change almost 3 years
31 * ago to avoid failing when no utmp was available. However, the 31 * ago to avoid failing when no utmp was available. However, the
32 * correct course of action wrt SUSv3 for a failing getlogin() is 32 * correct course of action wrt SUSv3 for a failing getlogin() is
33 * a dianostic message and an error return. 33 * a diagnostic message and an error return.
34 */ 34 */
35 35
36#include <stdio.h> 36#include <stdio.h>
diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c
index 3a07da055..bd1c9fc29 100644
--- a/coreutils/md5_sha1_sum.c
+++ b/coreutils/md5_sha1_sum.c
@@ -32,7 +32,7 @@
32#define FLAG_CHECK 2 32#define FLAG_CHECK 2
33#define FLAG_WARN 4 33#define FLAG_WARN 4
34 34
35/* This might be usefull elsewhere */ 35/* This might be useful elsewhere */
36static unsigned char *hash_bin_to_hex(unsigned char *hash_value, 36static unsigned char *hash_bin_to_hex(unsigned char *hash_value,
37 unsigned char hash_length) 37 unsigned char hash_length)
38{ 38{
diff --git a/editors/awk.c b/editors/awk.c
index cb74a9832..9905be092 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -784,7 +784,7 @@ static int istrue(var *v) {
784 return (v->string && *(v->string)) ? 1 : 0; 784 return (v->string && *(v->string)) ? 1 : 0;
785} 785}
786 786
787/* temporary varables allocator. Last allocated should be first freed */ 787/* temporary variables allocator. Last allocated should be first freed */
788static var *nvalloc(int n) { 788static var *nvalloc(int n) {
789 789
790 nvblock *pb = NULL; 790 nvblock *pb = NULL;
@@ -1386,7 +1386,7 @@ static node *mk_splitter(char *s, tsplitter *spl) {
1386} 1386}
1387 1387
1388/* use node as a regular expression. Supplied with node ptr and regex_t 1388/* use node as a regular expression. Supplied with node ptr and regex_t
1389 * storage space. Return ptr to regex (if result points to preg, it shuold 1389 * storage space. Return ptr to regex (if result points to preg, it should
1390 * be later regfree'd manually 1390 * be later regfree'd manually
1391 */ 1391 */
1392static regex_t *as_regex(node *op, regex_t *preg) { 1392static regex_t *as_regex(node *op, regex_t *preg) {
diff --git a/editors/sed.c b/editors/sed.c
index 168a69c5b..4b1392551 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -210,7 +210,7 @@ static char *copy_parsing_slashn(const char *string, int len)
210/* 210/*
211 * index_of_next_unescaped_regexp_delim - walks left to right through a string 211 * index_of_next_unescaped_regexp_delim - walks left to right through a string
212 * beginning at a specified index and returns the index of the next regular 212 * beginning at a specified index and returns the index of the next regular
213 * expression delimiter (typically a forward * slash ('/')) not preceeded by 213 * expression delimiter (typically a forward * slash ('/')) not preceded by
214 * a backslash ('\'). 214 * a backslash ('\').
215 */ 215 */
216static int index_of_next_unescaped_regexp_delim(const char delimiter, 216static int index_of_next_unescaped_regexp_delim(const char delimiter,
diff --git a/editors/vi.c b/editors/vi.c
index 0ed9edd6e..c5a37d750 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -19,7 +19,7 @@
19 */ 19 */
20 20
21static const char vi_Version[] = 21static const char vi_Version[] =
22 "$Id: vi.c,v 1.35 2004/03/31 11:12:51 andersen Exp $"; 22 "$Id: vi.c,v 1.36 2004/04/14 17:51:09 andersen Exp $";
23 23
24/* 24/*
25 * To compile for standalone use: 25 * To compile for standalone use:
@@ -45,7 +45,7 @@ static const char vi_Version[] =
45 * An "ex" line oriented mode- maybe using "cmdedit" 45 * An "ex" line oriented mode- maybe using "cmdedit"
46 */ 46 */
47 47
48//---- Feature -------------- Bytes to immplement 48//---- Feature -------------- Bytes to implement
49#ifdef STANDALONE 49#ifdef STANDALONE
50#define vi_main main 50#define vi_main main
51#define CONFIG_FEATURE_VI_COLON // 4288 51#define CONFIG_FEATURE_VI_COLON // 4288
@@ -641,7 +641,7 @@ static Byte *get_address(Byte *p, int *b, int *e) // get two colon addrs, if pre
641 p = get_one_address(p, b); 641 p = get_one_address(p, b);
642 while (isblnk(*p)) 642 while (isblnk(*p))
643 p++; 643 p++;
644 if (*p == ',') { // is there a address seperator 644 if (*p == ',') { // is there a address separator
645 p++; 645 p++;
646 while (isblnk(*p)) 646 while (isblnk(*p))
647 p++; 647 p++;
@@ -1452,7 +1452,7 @@ static Byte *new_screen(int ro, int co)
1452 screen = (Byte *) xmalloc(screensize); 1452 screen = (Byte *) xmalloc(screensize);
1453 // initialize the new screen. assume this will be a empty file. 1453 // initialize the new screen. assume this will be a empty file.
1454 screen_erase(); 1454 screen_erase();
1455 // non-existant text[] lines start with a tilde (~). 1455 // non-existent text[] lines start with a tilde (~).
1456 for (li = 1; li < ro - 1; li++) { 1456 for (li = 1; li < ro - 1; li++) {
1457 screen[(li * co) + 0] = '~'; 1457 screen[(li * co) + 0] = '~';
1458 } 1458 }
@@ -2528,7 +2528,7 @@ static int file_write(Byte * fn, Byte * first, Byte * last)
2528 2528
2529//----- Terminal Drawing --------------------------------------- 2529//----- Terminal Drawing ---------------------------------------
2530// The terminal is made up of 'rows' line of 'columns' columns. 2530// The terminal is made up of 'rows' line of 'columns' columns.
2531// classicly this would be 24 x 80. 2531// classically this would be 24 x 80.
2532// screen coordinates 2532// screen coordinates
2533// 0,0 ... 0,79 2533// 0,0 ... 0,79
2534// 1,0 ... 1,79 2534// 1,0 ... 1,79
@@ -3222,7 +3222,7 @@ key_cmd_mode:
3222 case 'f': // f- forward to a user specified char 3222 case 'f': // f- forward to a user specified char
3223 last_forward_char = get_one_char(); // get the search char 3223 last_forward_char = get_one_char(); // get the search char
3224 // 3224 //
3225 // dont seperate these two commands. 'f' depends on ';' 3225 // dont separate these two commands. 'f' depends on ';'
3226 // 3226 //
3227 //**** fall thru to ... 'i' 3227 //**** fall thru to ... 'i'
3228 case ';': // ;- look at rest of line for last forward char 3228 case ';': // ;- look at rest of line for last forward char
diff --git a/findutils/grep.c b/findutils/grep.c
index 229508cda..3ba746373 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -89,7 +89,7 @@ static char *cur_file; /* the current file we are reading */
89static void print_line(const char *line, int linenum, char decoration) 89static void print_line(const char *line, int linenum, char decoration)
90{ 90{
91#ifdef CONFIG_FEATURE_GREP_CONTEXT 91#ifdef CONFIG_FEATURE_GREP_CONTEXT
92 /* possibly print the little '--' seperator */ 92 /* possibly print the little '--' separator */
93 if ((lines_before || lines_after) && last_line_printed && 93 if ((lines_before || lines_after) && last_line_printed &&
94 last_line_printed < linenum - 1) { 94 last_line_printed < linenum - 1) {
95 puts("--"); 95 puts("--");
diff --git a/findutils/xargs.c b/findutils/xargs.c
index 16b94e20f..1a4347828 100644
--- a/findutils/xargs.c
+++ b/findutils/xargs.c
@@ -5,7 +5,7 @@
5 * (C) 2002,2003 by Vladimir Oleynik <dzo@simtreas.ru> 5 * (C) 2002,2003 by Vladimir Oleynik <dzo@simtreas.ru>
6 * 6 *
7 * Special thanks 7 * Special thanks
8 * - Mark Whitley and Glenn McGrath for stimul to rewrote :) 8 * - Mark Whitley and Glenn McGrath for stimulus to rewrite :)
9 * - Mike Rendell <michael@cs.mun.ca> 9 * - Mike Rendell <michael@cs.mun.ca>
10 * and David MacKenzie <djm@gnu.ai.mit.edu>. 10 * and David MacKenzie <djm@gnu.ai.mit.edu>.
11 * 11 *
diff --git a/include/usage.h b/include/usage.h
index 462d09eee..cd8a5ce71 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1009,7 +1009,7 @@
1009 "Options:\n" \ 1009 "Options:\n" \
1010 "\t-c FILE\t\tSpecifies configuration file. (default httpd.conf)\n" \ 1010 "\t-c FILE\t\tSpecifies configuration file. (default httpd.conf)\n" \
1011 USAGE_HTTPD_STANDALONE("\t-p PORT\tServer port (default 80)\n") \ 1011 USAGE_HTTPD_STANDALONE("\t-p PORT\tServer port (default 80)\n") \
1012 USAGE_HTTPD_SETUID("\t-u USER\tSet uid to USER after listening privilegies port\n") \ 1012 USAGE_HTTPD_SETUID("\t-u USER\tSet uid to USER after listening privileges port\n") \
1013 USAGE_HTTPD_BASIC_AUTH("\t-r REALM\tAuthentication Realm for Basic Authentication\n") \ 1013 USAGE_HTTPD_BASIC_AUTH("\t-r REALM\tAuthentication Realm for Basic Authentication\n") \
1014 USAGE_HTTPD_AUTH_MD5("\t-m PASS\t\tCrypt PASS with md5 algorithm\n") \ 1014 USAGE_HTTPD_AUTH_MD5("\t-m PASS\t\tCrypt PASS with md5 algorithm\n") \
1015 "\t-e STRING\tHtml encode STRING\n" \ 1015 "\t-e STRING\tHtml encode STRING\n" \
diff --git a/libbb/create_icmp6_socket.c b/libbb/create_icmp6_socket.c
index 596610449..d8ff35a0a 100644
--- a/libbb/create_icmp6_socket.c
+++ b/libbb/create_icmp6_socket.c
@@ -2,8 +2,8 @@
2/* 2/*
3 * Utility routines. 3 * Utility routines.
4 * 4 *
5 * create raw socket for icmp (IPv6 version) protocol test permision 5 * create raw socket for icmp (IPv6 version) protocol test permission
6 * and drop root privilegies if running setuid 6 * and drop root privileges if running setuid
7 * 7 *
8 */ 8 */
9 9
diff --git a/libbb/create_icmp_socket.c b/libbb/create_icmp_socket.c
index 58d792b1b..26120a66d 100644
--- a/libbb/create_icmp_socket.c
+++ b/libbb/create_icmp_socket.c
@@ -2,8 +2,8 @@
2/* 2/*
3 * Utility routines. 3 * Utility routines.
4 * 4 *
5 * create raw socket for icmp protocol test permision 5 * create raw socket for icmp protocol test permission
6 * and drop root privilegies if running setuid 6 * and drop root privileges if running setuid
7 * 7 *
8 */ 8 */
9 9
diff --git a/libbb/default_error_retval.c b/libbb/default_error_retval.c
index 7d2d89bb5..35c34b916 100644
--- a/libbb/default_error_retval.c
+++ b/libbb/default_error_retval.c
@@ -21,7 +21,7 @@
21/* Seems silly to copyright a global variable. ;-) Oh well. 21/* Seems silly to copyright a global variable. ;-) Oh well.
22 * 22 *
23 * At least one applet (cmp) returns a value different from the typical 23 * At least one applet (cmp) returns a value different from the typical
24 * EXIT_FAILURE values (1) when an error occurs. So, make it configureable 24 * EXIT_FAILURE values (1) when an error occurs. So, make it configurable
25 * by the applet. I suppose we could use a wrapper function to set it, but 25 * by the applet. I suppose we could use a wrapper function to set it, but
26 * that too seems silly. 26 * that too seems silly.
27 */ 27 */
diff --git a/libbb/fclose_nonstdin.c b/libbb/fclose_nonstdin.c
index 97e303e9c..8f489c879 100644
--- a/libbb/fclose_nonstdin.c
+++ b/libbb/fclose_nonstdin.c
@@ -20,7 +20,7 @@
20 * 20 *
21 */ 21 */
22 22
23/* A number of standard utilites can accept multiple command line args 23/* A number of standard utilities can accept multiple command line args
24 * of '-' for stdin, according to SUSv3. So we encapsulate the check 24 * of '-' for stdin, according to SUSv3. So we encapsulate the check
25 * here to save a little space. 25 * here to save a little space.
26 */ 26 */
diff --git a/libbb/isdirectory.c b/libbb/isdirectory.c
index f3caaf178..7f8f7e415 100644
--- a/libbb/isdirectory.c
+++ b/libbb/isdirectory.c
@@ -25,7 +25,7 @@
25 25
26/* 26/*
27 * Return TRUE if a fileName is a directory. 27 * Return TRUE if a fileName is a directory.
28 * Nonexistant files return FALSE. 28 * Nonexistent files return FALSE.
29 */ 29 */
30int is_directory(const char *fileName, const int followLinks, struct stat *statBuf) 30int is_directory(const char *fileName, const int followLinks, struct stat *statBuf)
31{ 31{
diff --git a/libbb/make_directory.c b/libbb/make_directory.c
index e3d2c52b1..710537dd1 100644
--- a/libbb/make_directory.c
+++ b/libbb/make_directory.c
@@ -31,8 +31,8 @@
31 * sure that (flags & FILEUTILS_RECUR) is non-zero. Newly created 31 * sure that (flags & FILEUTILS_RECUR) is non-zero. Newly created
32 * intermediate directories will have at least u+wx perms. 32 * intermediate directories will have at least u+wx perms.
33 * 33 *
34 * To set specific permisions on 'path', pass the appropriate 'mode' 34 * To set specific permissions on 'path', pass the appropriate 'mode'
35 * val. Otherwise, pass -1 to get default permisions. 35 * val. Otherwise, pass -1 to get default permissions.
36 */ 36 */
37 37
38#include <errno.h> 38#include <errno.h>
diff --git a/libbb/printf.c b/libbb/printf.c
index 3c438b2c9..1156da911 100644
--- a/libbb/printf.c
+++ b/libbb/printf.c
@@ -28,7 +28,7 @@
28 * reasons for failure which don't set the streams error indicator, 28 * reasons for failure which don't set the streams error indicator,
29 * SUSv3 lists EILSEQ, EINVAL, and ENOMEM. 29 * SUSv3 lists EILSEQ, EINVAL, and ENOMEM.
30 * 30 *
31 * In some cases, it would be desireable to have a group of *printf() 31 * In some cases, it would be desirable to have a group of *printf()
32 * functions available that _always_ set the stream error indicator on 32 * functions available that _always_ set the stream error indicator on
33 * failure. That would allow us to defer error checking until applet 33 * failure. That would allow us to defer error checking until applet
34 * exit. Unfortunately, there is no standard way of setting a streams 34 * exit. Unfortunately, there is no standard way of setting a streams
@@ -38,7 +38,7 @@
38 * free to send patches for stdio implementations where the following 38 * free to send patches for stdio implementations where the following
39 * fails. 39 * fails.
40 * 40 *
41 * NOTE: None of this is threadsafe. As busybox is a nonthreaded app, 41 * NOTE: None of this is thread safe. As busybox is a non-threaded app,
42 * that isn't currently an issue. 42 * that isn't currently an issue.
43 */ 43 */
44 44
@@ -109,7 +109,7 @@
109 * 109 *
110 * Some example bugs as of March 12, 2003... 110 * Some example bugs as of March 12, 2003...
111 * 1) fputc() doesn't set the error indicator on failure. 111 * 1) fputc() doesn't set the error indicator on failure.
112 * 2) freopen() doesn't maintain the same stream object, contary to 112 * 2) freopen() doesn't maintain the same stream object, contrary to
113 * standards. This makes it useless in its primary role of 113 * standards. This makes it useless in its primary role of
114 * reassociating stdin/stdout/stderr. 114 * reassociating stdin/stdout/stderr.
115 * 3) printf() often fails to correctly format output when conversions 115 * 3) printf() often fails to correctly format output when conversions
@@ -123,7 +123,7 @@
123#error dietlibc is currently not supported. Please see the commented source. 123#error dietlibc is currently not supported. Please see the commented source.
124 124
125#else /* some other lib */ 125#else /* some other lib */
126/* Please see the comments for the above supported libaries for examples 126/* Please see the comments for the above supported libraries for examples
127 * of what is required to support your stdio implementation. 127 * of what is required to support your stdio implementation.
128 */ 128 */
129#error Your stdio library is currently not supported. Please see the commented source. 129#error Your stdio library is currently not supported. Please see the commented source.
diff --git a/libbb/run_parts.c b/libbb/run_parts.c
index 607b84190..4c8841fe5 100644
--- a/libbb/run_parts.c
+++ b/libbb/run_parts.c
@@ -43,8 +43,8 @@ static int valid_name(const struct dirent *d)
43 return 1; 43 return 1;
44} 44}
45 45
46/* test mode = 1 is the same as offical run_parts 46/* test mode = 1 is the same as official run_parts
47 * test_mode = 2 means to fail siliently on missing directories 47 * test_mode = 2 means to fail silently on missing directories
48 */ 48 */
49 49
50extern int run_parts(char **args, const unsigned char test_mode, char **env) 50extern int run_parts(char **args, const unsigned char test_mode, char **env)
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c
index 0601121ad..80022b390 100644
--- a/libbb/vfork_daemon_rexec.c
+++ b/libbb/vfork_daemon_rexec.c
@@ -1,10 +1,10 @@
1/* 1/*
2 * Rexec program for system have fork() as vfork() with foregound option 2 * Rexec program for system have fork() as vfork() with foreground option
3 * 3 *
4 * Copyright (C) Vladimir N. Oleynik <dzo@simtreas.ru> 4 * Copyright (C) Vladimir N. Oleynik <dzo@simtreas.ru>
5 * Copyright (C) 2003 Russ Dill <Russ.Dill@asu.edu> 5 * Copyright (C) 2003 Russ Dill <Russ.Dill@asu.edu>
6 * 6 *
7 * daemon() portion taken from uclibc: 7 * daemon() portion taken from uClibc:
8 * 8 *
9 * Copyright (c) 1991, 1993 9 * Copyright (c) 1991, 1993
10 * The Regents of the University of California. All rights reserved. 10 * The Regents of the University of California. All rights reserved.
diff --git a/libbb/warn_ignoring_args.c b/libbb/warn_ignoring_args.c
index 223831fd1..a1fa528f4 100644
--- a/libbb/warn_ignoring_args.c
+++ b/libbb/warn_ignoring_args.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * warn_ingoring_args implementations for busybox 3 * warn_ignoring_args implementation for busybox
4 * 4 *
5 * Copyright (C) 2003 Manuel Novoa III <mjn3@codepoet.org> 5 * Copyright (C) 2003 Manuel Novoa III <mjn3@codepoet.org>
6 * 6 *
diff --git a/libbb/xconnect.c b/libbb/xconnect.c
index 4cd22c74f..09a1daad1 100644
--- a/libbb/xconnect.c
+++ b/libbb/xconnect.c
@@ -2,7 +2,7 @@
2/* 2/*
3 * Utility routines. 3 * Utility routines.
4 * 4 *
5 * Connect to host at port using address resolusion from getaddrinfo 5 * Connect to host at port using address resolution from getaddrinfo
6 * 6 *
7 */ 7 */
8 8
diff --git a/libpwdgrp/__getgrent.c b/libpwdgrp/__getgrent.c
index ed4f59c5b..3b54b9eec 100644
--- a/libpwdgrp/__getgrent.c
+++ b/libpwdgrp/__getgrent.c
@@ -28,7 +28,7 @@
28/* 28/*
29 * Define GR_SCALE_DYNAMIC if you want grp to dynamically scale its read buffer 29 * Define GR_SCALE_DYNAMIC if you want grp to dynamically scale its read buffer
30 * so that lines of any length can be used. On very very small systems, 30 * so that lines of any length can be used. On very very small systems,
31 * you may want to leave this undefined becasue it will make the grp functions 31 * you may want to leave this undefined because it will make the grp functions
32 * somewhat larger (because of the inclusion of malloc and the code necessary). 32 * somewhat larger (because of the inclusion of malloc and the code necessary).
33 * On larger systems, you will want to define this, because grp will _not_ 33 * On larger systems, you will want to define this, because grp will _not_
34 * deal with long lines gracefully (they will be skipped). 34 * deal with long lines gracefully (they will be skipped).
diff --git a/libpwdgrp/initgroups.c b/libpwdgrp/initgroups.c
index 9243fd3ac..6577ec62f 100644
--- a/libpwdgrp/initgroups.c
+++ b/libpwdgrp/initgroups.c
@@ -28,7 +28,7 @@
28/* 28/*
29 * Define GR_SCALE_DYNAMIC if you want grp to dynamically scale its read buffer 29 * Define GR_SCALE_DYNAMIC if you want grp to dynamically scale its read buffer
30 * so that lines of any length can be used. On very very small systems, 30 * so that lines of any length can be used. On very very small systems,
31 * you may want to leave this undefined becasue it will make the grp functions 31 * you may want to leave this undefined because it will make the grp functions
32 * somewhat larger (because of the inclusion of malloc and the code necessary). 32 * somewhat larger (because of the inclusion of malloc and the code necessary).
33 * On larger systems, you will want to define this, because grp will _not_ 33 * On larger systems, you will want to define this, because grp will _not_
34 * deal with long lines gracefully (they will be skipped). 34 * deal with long lines gracefully (they will be skipped).
diff --git a/loginutils/login.c b/loginutils/login.c
index 10b7133d7..20fab0753 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -96,7 +96,7 @@ extern int login_main(int argc, char **argv)
96 break; 96 break;
97 case 'f': 97 case 'f':
98 /* 98 /*
99 * username must be a seperate token 99 * username must be a separate token
100 * (-f root, *NOT* -froot). --marekm 100 * (-f root, *NOT* -froot). --marekm
101 */ 101 */
102 if ( optarg != argv[optind-1] ) 102 if ( optarg != argv[optind-1] )
diff --git a/miscutils/crond.c b/miscutils/crond.c
index e32bac67a..085cf6e9d 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -310,7 +310,7 @@ static int ChangeUser(const char *user)
310 const char *err_msg; 310 const char *err_msg;
311 311
312 /* 312 /*
313 * Obtain password entry and change privilages 313 * Obtain password entry and change privileges
314 */ 314 */
315 pas = getpwnam(user); 315 pas = getpwnam(user);
316 if (pas == 0) { 316 if (pas == 0) {
@@ -1020,7 +1020,7 @@ static void EndJob(const char *user, CronLine * line)
1020 ForkJob(user, line, mailFd, SENDMAIL, SENDMAIL_ARGS, NULL); 1020 ForkJob(user, line, mailFd, SENDMAIL, SENDMAIL_ARGS, NULL);
1021} 1021}
1022#else 1022#else
1023/* crond whithout sendmail */ 1023/* crond without sendmail */
1024 1024
1025static void RunJob(const char *user, CronLine * line) 1025static void RunJob(const char *user, CronLine * line)
1026{ 1026{
diff --git a/miscutils/crontab.c b/miscutils/crontab.c
index 52d08dda3..89e13775f 100644
--- a/miscutils/crontab.c
+++ b/miscutils/crontab.c
@@ -339,7 +339,7 @@ ChangeUser(const char *user, short dochdir)
339 struct passwd *pas; 339 struct passwd *pas;
340 340
341 /* 341 /*
342 * Obtain password entry and change privilages 342 * Obtain password entry and change privileges
343 */ 343 */
344 344
345 if ((pas = getpwnam(user)) == 0) { 345 if ((pas = getpwnam(user)) == 0) {
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c
index 6a249bdce..c2dde91c6 100644
--- a/miscutils/devfsd.c
+++ b/miscutils/devfsd.c
@@ -1563,7 +1563,7 @@ static int expand_expression(char *output, unsigned int outsize,
1563 void *info, 1563 void *info,
1564 const char *devname, 1564 const char *devname,
1565 const regmatch_t *ex, unsigned int numexp) 1565 const regmatch_t *ex, unsigned int numexp)
1566/* [SUMMARY] Expand enviroment variables and regular subexpressions in string. 1566/* [SUMMARY] Expand environment variables and regular subexpressions in string.
1567 <output> The output expanded expression is written here. 1567 <output> The output expanded expression is written here.
1568 <length> The size of the output buffer. 1568 <length> The size of the output buffer.
1569 <input> The input expression. This may equal <<output>>. 1569 <input> The input expression. This may equal <<output>>.
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 006dc0d49..bbb707cf7 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -222,7 +222,7 @@ static const char *ata1_cfg_str[] = { /* word 0 in ATA-1 mode */
222/* word 1: number of logical cylinders */ 222/* word 1: number of logical cylinders */
223#define LCYLS_MAX 0x3fff /* maximum allowable value */ 223#define LCYLS_MAX 0x3fff /* maximum allowable value */
224 224
225/* word 2: specific configureation 225/* word 2: specific configuration
226 * (a) require SET FEATURES to spin-up 226 * (a) require SET FEATURES to spin-up
227 * (b) require spin-up to fully reply to IDENTIFY DEVICE 227 * (b) require spin-up to fully reply to IDENTIFY DEVICE
228 */ 228 */
diff --git a/modutils/insmod.c b/modutils/insmod.c
index d788a76c3..63ee9da71 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -282,11 +282,11 @@ extern int insmod_ng_main( int argc, char **argv);
282#ifndef MODUTILS_MODULE_H 282#ifndef MODUTILS_MODULE_H
283static const int MODUTILS_MODULE_H = 1; 283static const int MODUTILS_MODULE_H = 1;
284 284
285#ident "$Id: insmod.c,v 1.116 2004/04/06 11:56:26 andersen Exp $" 285#ident "$Id: insmod.c,v 1.117 2004/04/14 17:51:22 andersen Exp $"
286 286
287/* This file contains the structures used by the 2.0 and 2.1 kernels. 287/* This file contains the structures used by the 2.0 and 2.1 kernels.
288 We do not use the kernel headers directly because we do not wish 288 We do not use the kernel headers directly because we do not wish
289 to be dependant on a particular kernel version to compile insmod. */ 289 to be dependent on a particular kernel version to compile insmod. */
290 290
291 291
292/*======================================================================*/ 292/*======================================================================*/
@@ -503,7 +503,7 @@ int delete_module(const char *);
503#ifndef MODUTILS_OBJ_H 503#ifndef MODUTILS_OBJ_H
504static const int MODUTILS_OBJ_H = 1; 504static const int MODUTILS_OBJ_H = 1;
505 505
506#ident "$Id: insmod.c,v 1.116 2004/04/06 11:56:26 andersen Exp $" 506#ident "$Id: insmod.c,v 1.117 2004/04/14 17:51:22 andersen Exp $"
507 507
508/* The relocatable object is manipulated using elfin types. */ 508/* The relocatable object is manipulated using elfin types. */
509 509
@@ -2597,8 +2597,8 @@ new_process_module_arguments(struct obj_file *f, int argc, char **argv)
2597 str = alloca(r - q + 1); 2597 str = alloca(r - q + 1);
2598 memcpy(str, q, r - q); 2598 memcpy(str, q, r - q);
2599 2599
2600 /* I don't know if it is usefull, as the previous case 2600 /* I don't know if it is useful, as the previous case
2601 doesn't null terminate the string ??? */ 2601 doesn't nul terminate the string ??? */
2602 str[r - q] = '\0'; 2602 str[r - q] = '\0';
2603 2603
2604 /* Keep next fields */ 2604 /* Keep next fields */
diff --git a/networking/httpd.c b/networking/httpd.c
index aad30a1a1..7322d143a 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -40,7 +40,7 @@
40 * foo=`httpd -d $foo` # decode "Hello%20World" as "Hello World" 40 * foo=`httpd -d $foo` # decode "Hello%20World" as "Hello World"
41 * bar=`httpd -e "<Hello World>"` # encode as "&#60Hello&#32World&#62" 41 * bar=`httpd -e "<Hello World>"` # encode as "&#60Hello&#32World&#62"
42 * Note that url encoding for arguments is not the same as html encoding for 42 * Note that url encoding for arguments is not the same as html encoding for
43 * presenation. -d decodes a url-encoded argument while -e encodes in html 43 * presentation. -d decodes a url-encoded argument while -e encodes in html
44 * for page display. 44 * for page display.
45 * 45 *
46 * httpd.conf has the following format: 46 * httpd.conf has the following format:
@@ -55,7 +55,7 @@
55 * /adm:toor:PaSsWd # or user toor, pwd PaSsWd on urls starting with /adm/ 55 * /adm:toor:PaSsWd # or user toor, pwd PaSsWd on urls starting with /adm/
56 * .au:audio/basic # additional mime type for audio.au files 56 * .au:audio/basic # additional mime type for audio.au files
57 * 57 *
58 * A/D may be as a/d or allow/deny - first char case unsensitive 58 * A/D may be as a/d or allow/deny - first char case insensitive
59 * Deny IP rules take precedence over allow rules. 59 * Deny IP rules take precedence over allow rules.
60 * 60 *
61 * 61 *
@@ -127,7 +127,7 @@ static const char home[] = "./";
127# define cont_l_fmt "%ld" 127# define cont_l_fmt "%ld"
128#endif 128#endif
129 129
130// Note: bussybox xfuncs are not used because we want the server to keep running 130// Note: busybox xfuncs are not used because we want the server to keep running
131// if something bad happens due to a malformed user request. 131// if something bad happens due to a malformed user request.
132// As a result, all memory allocation after daemonize 132// As a result, all memory allocation after daemonize
133// is checked rigorously 133// is checked rigorously
@@ -260,7 +260,7 @@ static HttpdConfig *config;
260static const char request_GET[] = "GET"; /* size algorithic optimize */ 260static const char request_GET[] = "GET"; /* size algorithic optimize */
261 261
262static const char* const suffixTable [] = { 262static const char* const suffixTable [] = {
263/* Warning: shorted equalent suffix in one line must be first */ 263/* Warning: shorted equivalent suffix in one line must be first */
264 ".htm.html", "text/html", 264 ".htm.html", "text/html",
265 ".jpg.jpeg", "image/jpeg", 265 ".jpg.jpeg", "image/jpeg",
266 ".gif", "image/gif", 266 ".gif", "image/gif",
@@ -775,7 +775,7 @@ static char *decodeString(char *orig, int flag_plus_to_space)
775 * 775 *
776 > $Function: addEnv() 776 > $Function: addEnv()
777 * 777 *
778 * $Description: Add an enviornment variable setting to the global list. 778 * $Description: Add an environment variable setting to the global list.
779 * A NAME=VALUE string is allocated, filled, and added to the list of 779 * A NAME=VALUE string is allocated, filled, and added to the list of
780 * environment settings passed to the cgi execution script. 780 * environment settings passed to the cgi execution script.
781 * 781 *
@@ -1380,7 +1380,7 @@ static int checkPermIP(void)
1380 return cur->allow_deny == 'A'; /* Allow/Deny */ 1380 return cur->allow_deny == 'A'; /* Allow/Deny */
1381 } 1381 }
1382 1382
1383 /* if uncofigured, return 1 - access from all */ 1383 /* if unconfigured, return 1 - access from all */
1384 return !config->flg_deny_all; 1384 return !config->flg_deny_all;
1385} 1385}
1386 1386
@@ -1765,7 +1765,7 @@ static int miniHttpd(int server)
1765 while (1) { 1765 while (1) {
1766 readfd = portfd; 1766 readfd = portfd;
1767 1767
1768 /* Now wait INDEFINATELY on the set of sockets! */ 1768 /* Now wait INDEFINITELY on the set of sockets! */
1769 if (select(server + 1, &readfd, 0, 0, 0) > 0) { 1769 if (select(server + 1, &readfd, 0, 0, 0) > 0) {
1770 if (FD_ISSET(server, &readfd)) { 1770 if (FD_ISSET(server, &readfd)) {
1771 int on; 1771 int on;
@@ -1990,7 +1990,7 @@ int httpd_main(int argc, char *argv[])
1990#ifndef CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY 1990#ifndef CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY
1991 server = openServer(); 1991 server = openServer();
1992# ifdef CONFIG_FEATURE_HTTPD_SETUID 1992# ifdef CONFIG_FEATURE_HTTPD_SETUID
1993 /* drop privilegies */ 1993 /* drop privileges */
1994 if(uid > 0) 1994 if(uid > 0)
1995 setuid(uid); 1995 setuid(uid);
1996# endif 1996# endif
diff --git a/networking/inetd.c b/networking/inetd.c
index 283c33bed..4440a2d30 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -56,7 +56,7 @@
56 * server program full path name 56 * server program full path name
57 * server program arguments maximum of MAXARGS (20) 57 * server program arguments maximum of MAXARGS (20)
58 * 58 *
59 * RPC services unsuported 59 * RPC services unsupported
60 * 60 *
61 * Comment lines are indicated by a `#' in column 1. 61 * Comment lines are indicated by a `#' in column 1.
62 */ 62 */
@@ -345,7 +345,7 @@ more:
345 sep->se_family = AF_UNIX; 345 sep->se_family = AF_UNIX;
346 } else { 346 } else {
347 if (strncmp(cp_ptr, "rpc/", 4) == 0) { 347 if (strncmp(cp_ptr, "rpc/", 4) == 0) {
348 syslog(LOG_ERR, "%s: rpc services not suported", 348 syslog(LOG_ERR, "%s: rpc services not supported",
349 sep->se_service); 349 sep->se_service);
350 goto more; 350 goto more;
351 } 351 }
diff --git a/networking/ipcalc.c b/networking/ipcalc.c
index 5bf07c675..f8ca9723c 100644
--- a/networking/ipcalc.c
+++ b/networking/ipcalc.c
@@ -5,8 +5,8 @@
5 * By Jordan Crouse <jordan@cosmicpenguin.net> 5 * By Jordan Crouse <jordan@cosmicpenguin.net>
6 * Stephan Linz <linz@li-pro.net> 6 * Stephan Linz <linz@li-pro.net>
7 * 7 *
8 * This is a complete reimplentation of the ipcalc program 8 * This is a complete reimplementation of the ipcalc program
9 * from Redhat. I didn't look at their source code, but there 9 * from Red Hat. I didn't look at their source code, but there
10 * is no denying that this is a loving reimplementation 10 * is no denying that this is a loving reimplementation
11 */ 11 */
12 12
diff --git a/networking/nameif.c b/networking/nameif.c
index dca7c8c08..dcc5ec097 100644
--- a/networking/nameif.c
+++ b/networking/nameif.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * nameif.c - Naming Interfaces based on MAC address for busybox. 2 * nameif.c - Naming Interfaces based on MAC address for busybox.
3 * 3 *
4 * Writen 2000 by Andi Kleen. 4 * Written 2000 by Andi Kleen.
5 * Busybox port 2002 by Nick Fedchik <nick@fedchik.org.ua> 5 * Busybox port 2002 by Nick Fedchik <nick@fedchik.org.ua>
6 * Glenn McGrath <bug1@optushome.com.au> 6 * Glenn McGrath <bug1@optushome.com.au>
7 * 7 *
@@ -47,7 +47,7 @@
47/* take from linux/sockios.h */ 47/* take from linux/sockios.h */
48#define SIOCSIFNAME 0x8923 /* set interface name */ 48#define SIOCSIFNAME 0x8923 /* set interface name */
49 49
50/* Octets in one ethernet addr, from <linux/if_ether.h> */ 50/* Octets in one Ethernet addr, from <linux/if_ether.h> */
51#define ETH_ALEN 6 51#define ETH_ALEN 6
52 52
53#ifndef ifr_newname 53#ifndef ifr_newname
diff --git a/networking/udhcp/clientpacket.c b/networking/udhcp/clientpacket.c
index 5b27004f9..ec96601cb 100644
--- a/networking/udhcp/clientpacket.c
+++ b/networking/udhcp/clientpacket.c
@@ -82,7 +82,7 @@ static void init_packet(struct dhcpMessage *packet, char type)
82} 82}
83 83
84 84
85/* Add a paramater request list for stubborn DHCP servers. Pull the data 85/* Add a parameter request list for stubborn DHCP servers. Pull the data
86 * from the struct in options.c. Don't do bounds checking here because it 86 * from the struct in options.c. Don't do bounds checking here because it
87 * goes towards the head of the packet. */ 87 * goes towards the head of the packet. */
88static void add_requests(struct dhcpMessage *packet) 88static void add_requests(struct dhcpMessage *packet)
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c
index 5dad7d51c..ddfc54732 100644
--- a/networking/udhcp/common.c
+++ b/networking/udhcp/common.c
@@ -4,7 +4,7 @@
4 * simple helper functions. 4 * simple helper functions.
5 * 5 *
6 * Russ Dill <Russ.Dill@asu.edu> 2001-2003 6 * Russ Dill <Russ.Dill@asu.edu> 2001-2003
7 * Rewrited by Vladimir Oleynik <dzo@simtreas.ru> (C) 2003 7 * Rewritten by Vladimir Oleynik <dzo@simtreas.ru> (C) 2003
8 * 8 *
9 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by 10 * it under the terms of the GNU General Public License as published by
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h
index 677bbfd17..cdc51cf8a 100644
--- a/networking/udhcp/common.h
+++ b/networking/udhcp/common.h
@@ -1,7 +1,7 @@
1/* common.h 1/* common.h
2 * 2 *
3 * Russ Dill <Russ.Dill@asu.edu> Soptember 2001 3 * Russ Dill <Russ.Dill@asu.edu> September 2001
4 * Rewrited by Vladimir Oleynik <dzo@simtreas.ru> (C) 2003 4 * Rewritten by Vladimir Oleynik <dzo@simtreas.ru> (C) 2003
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify 6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by 7 * it under the terms of the GNU General Public License as published by
diff --git a/networking/udhcp/packet.c b/networking/udhcp/packet.c
index 7cbd83a35..1c6bb0ca4 100644
--- a/networking/udhcp/packet.c
+++ b/networking/udhcp/packet.c
@@ -113,7 +113,7 @@ uint16_t checksum(void *addr, int count)
113} 113}
114 114
115 115
116/* Constuct a ip/udp header for a packet, and specify the source and dest hardware address */ 116/* Construct a ip/udp header for a packet, and specify the source and dest hardware address */
117int raw_packet(struct dhcpMessage *payload, uint32_t source_ip, int source_port, 117int raw_packet(struct dhcpMessage *payload, uint32_t source_ip, int source_port,
118 uint32_t dest_ip, int dest_port, uint8_t *dest_arp, int ifindex) 118 uint32_t dest_ip, int dest_port, uint8_t *dest_arp, int ifindex)
119{ 119{
diff --git a/networking/udhcp/pidfile.c b/networking/udhcp/pidfile.c
index d656c7ad0..2e0c7533e 100644
--- a/networking/udhcp/pidfile.c
+++ b/networking/udhcp/pidfile.c
@@ -2,7 +2,7 @@
2 * 2 *
3 * Functions to assist in the writing and removing of pidfiles. 3 * Functions to assist in the writing and removing of pidfiles.
4 * 4 *
5 * Russ Dill <Russ.Dill@asu.edu> Soptember 2001 5 * Russ Dill <Russ.Dill@asu.edu> September 2001
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by 8 * it under the terms of the GNU General Public License as published by
diff --git a/networking/udhcp/pidfile.h b/networking/udhcp/pidfile.h
index 7f8e8aedc..ea97d1de5 100644
--- a/networking/udhcp/pidfile.h
+++ b/networking/udhcp/pidfile.h
@@ -2,7 +2,7 @@
2 * 2 *
3 * Functions to assist in the writing and removing of pidfiles. 3 * Functions to assist in the writing and removing of pidfiles.
4 * 4 *
5 * Russ Dill <Russ.Dill@asu.edu> Soptember 2001 5 * Russ Dill <Russ.Dill@asu.edu> September 2001
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by 8 * it under the terms of the GNU General Public License as published by
diff --git a/networking/udhcp/script.c b/networking/udhcp/script.c
index cae4db7af..e0a8dad53 100644
--- a/networking/udhcp/script.c
+++ b/networking/udhcp/script.c
@@ -132,7 +132,7 @@ static void fill_options(char *dest, uint8_t *option, struct dhcp_option *type_p
132} 132}
133 133
134 134
135/* put all the paramaters into an environment */ 135/* put all the parameters into an environment */
136static char **fill_envp(struct dhcpMessage *packet) 136static char **fill_envp(struct dhcpMessage *packet)
137{ 137{
138 int num_options = 0; 138 int num_options = 0;
diff --git a/networking/udhcp/serverpacket.c b/networking/udhcp/serverpacket.c
index 937436a11..bc9d822a9 100644
--- a/networking/udhcp/serverpacket.c
+++ b/networking/udhcp/serverpacket.c
@@ -1,6 +1,6 @@
1/* serverpacket.c 1/* serverpacket.c
2 * 2 *
3 * Constuct and send DHCP server packets 3 * Construct and send DHCP server packets
4 * 4 *
5 * Russ Dill <Russ.Dill@asu.edu> July 2001 5 * Russ Dill <Russ.Dill@asu.edu> July 2001
6 * 6 *
diff --git a/networking/udhcp/signalpipe.c b/networking/udhcp/signalpipe.c
index 4f3292b9d..074c8a603 100644
--- a/networking/udhcp/signalpipe.c
+++ b/networking/udhcp/signalpipe.c
@@ -1,8 +1,8 @@
1/* signalpipe.c 1/* signalpipe.c
2 * 2 *
3 * Signal pipe infastructure. A reliable way of delivering signals. 3 * Signal pipe infrastructure. A reliable way of delivering signals.
4 * 4 *
5 * Russ Dill <Russ.Dill@asu.edu> Decemeber 2003 5 * Russ Dill <Russ.Dill@asu.edu> December 2003
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by 8 * it under the terms of the GNU General Public License as published by
diff --git a/networking/wget.c b/networking/wget.c
index 3fbf6b4c2..e233daf05 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -816,7 +816,7 @@ progressmeter(int flag)
816#endif 816#endif
817 817
818/* Original copyright notice which applies to the CONFIG_FEATURE_WGET_STATUSBAR stuff, 818/* Original copyright notice which applies to the CONFIG_FEATURE_WGET_STATUSBAR stuff,
819 * much of which was blatently stolen from openssh. */ 819 * much of which was blatantly stolen from openssh. */
820 820
821/*- 821/*-
822 * Copyright (c) 1992, 1993 822 * Copyright (c) 1992, 1993
@@ -850,7 +850,7 @@ progressmeter(int flag)
850 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 850 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
851 * SUCH DAMAGE. 851 * SUCH DAMAGE.
852 * 852 *
853 * $Id: wget.c,v 1.73 2004/04/08 10:27:11 bug1 Exp $ 853 * $Id: wget.c,v 1.74 2004/04/14 17:51:24 andersen Exp $
854 */ 854 */
855 855
856 856
diff --git a/procps/top.c b/procps/top.c
index f619f6923..2bef38dd4 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -14,7 +14,7 @@
14 * 14 *
15 * (C) Eero Tamminen <oak at welho dot com> 15 * (C) Eero Tamminen <oak at welho dot com>
16 * 16 *
17 * Rewroted by Vladimir Oleynik (C) 2002 <dzo@simtreas.ru> 17 * Rewritten by Vladimir Oleynik (C) 2002 <dzo@simtreas.ru>
18 */ 18 */
19 19
20/* Original code Copyrights */ 20/* Original code Copyrights */
@@ -133,7 +133,7 @@ static unsigned long Hertz;
133 * is the kernel clock tick rate. One of these units is called a jiffy. 133 * is the kernel clock tick rate. One of these units is called a jiffy.
134 * The HZ value used in the kernel may vary according to hacker desire. 134 * The HZ value used in the kernel may vary according to hacker desire.
135 * According to Linus Torvalds, this is not true. He considers the values 135 * According to Linus Torvalds, this is not true. He considers the values
136 * in /proc as being in architecture-dependant units that have no relation 136 * in /proc as being in architecture-dependent units that have no relation
137 * to the kernel clock tick rate. Examination of the kernel source code 137 * to the kernel clock tick rate. Examination of the kernel source code
138 * reveals that opinion as wishful thinking. 138 * reveals that opinion as wishful thinking.
139 * 139 *
diff --git a/shell/ash.c b/shell/ash.c
index 977ae4647..e2205efd2 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -174,7 +174,7 @@ static const char not_found_msg[] = "%s: not found";
174 * We enclose jmp_buf in a structure so that we can declare pointers to 174 * We enclose jmp_buf in a structure so that we can declare pointers to
175 * jump locations. The global variable handler contains the location to 175 * jump locations. The global variable handler contains the location to
176 * jump to when an exception occurs, and the global variable exception 176 * jump to when an exception occurs, and the global variable exception
177 * contains a code identifying the exeception. To implement nested 177 * contains a code identifying the exception. To implement nested
178 * exception handlers, the user should save the value of handler on entry 178 * exception handlers, the user should save the value of handler on entry
179 * to an inner scope, set handler to point to a jmploc structure for the 179 * to an inner scope, set handler to point to a jmploc structure for the
180 * inner scope, and restore handler on exit from the scope. 180 * inner scope, and restore handler on exit from the scope.
@@ -2702,7 +2702,7 @@ static const struct builtincmd bltin = {
2702 */ 2702 */
2703 2703
2704/* 2704/*
2705 * The eval commmand. 2705 * The eval command.
2706 */ 2706 */
2707 2707
2708static int 2708static int
@@ -7228,7 +7228,7 @@ forkshell(struct job *jp, union node *n, int mode)
7228 * the interactive program catches interrupts, the user doesn't want 7228 * the interactive program catches interrupts, the user doesn't want
7229 * these interrupts to also abort the loop. The approach we take here 7229 * these interrupts to also abort the loop. The approach we take here
7230 * is to have the shell ignore interrupt signals while waiting for a 7230 * is to have the shell ignore interrupt signals while waiting for a
7231 * forground process to terminate, and then send itself an interrupt 7231 * foreground process to terminate, and then send itself an interrupt
7232 * signal if the child process was terminated by an interrupt signal. 7232 * signal if the child process was terminated by an interrupt signal.
7233 * Unfortunately, some programs want to do a bit of cleanup and then 7233 * Unfortunately, some programs want to do a bit of cleanup and then
7234 * exit on interrupt; unless these processes terminate themselves by 7234 * exit on interrupt; unless these processes terminate themselves by
@@ -11932,7 +11932,7 @@ static int vpcmp(const void *, const void *);
11932static struct var **findvar(struct var **, const char *); 11932static struct var **findvar(struct var **, const char *);
11933 11933
11934/* 11934/*
11935 * Initialize the varable symbol tables and import the environment 11935 * Initialize the variable symbol tables and import the environment
11936 */ 11936 */
11937 11937
11938 11938
@@ -12539,7 +12539,7 @@ letcmd(int argc, char **argv)
12539/* $NetBSD: miscbltin.c,v 1.31 2002/11/24 22:35:41 christos Exp $ */ 12539/* $NetBSD: miscbltin.c,v 1.31 2002/11/24 22:35:41 christos Exp $ */
12540 12540
12541/* 12541/*
12542 * Miscelaneous builtins. 12542 * Miscellaneous builtins.
12543 */ 12543 */
12544 12544
12545#undef rflag 12545#undef rflag
@@ -12911,14 +12911,14 @@ ulimitcmd(int argc, char **argv)
12911 12911
12912/* This is my infix parser/evaluator. It is optimized for size, intended 12912/* This is my infix parser/evaluator. It is optimized for size, intended
12913 * as a replacement for yacc-based parsers. However, it may well be faster 12913 * as a replacement for yacc-based parsers. However, it may well be faster
12914 * than a comparable parser writen in yacc. The supported operators are 12914 * than a comparable parser written in yacc. The supported operators are
12915 * listed in #defines below. Parens, order of operations, and error handling 12915 * listed in #defines below. Parens, order of operations, and error handling
12916 * are supported. This code is threadsafe. The exact expression format should 12916 * are supported. This code is thread safe. The exact expression format should
12917 * be that which POSIX specifies for shells. */ 12917 * be that which POSIX specifies for shells. */
12918 12918
12919/* The code uses a simple two-stack algorithm. See 12919/* The code uses a simple two-stack algorithm. See
12920 * http://www.onthenet.com.au/~grahamis/int2008/week02/lect02.html 12920 * http://www.onthenet.com.au/~grahamis/int2008/week02/lect02.html
12921 * for a detailed explaination of the infix-to-postfix algorithm on which 12921 * for a detailed explanation of the infix-to-postfix algorithm on which
12922 * this is based (this code differs in that it applies operators immediately 12922 * this is based (this code differs in that it applies operators immediately
12923 * to the stack instead of adding them to a queue to end up with an 12923 * to the stack instead of adding them to a queue to end up with an
12924 * expression). */ 12924 * expression). */
@@ -12948,7 +12948,7 @@ ulimitcmd(int argc, char **argv)
12948 * parens and then checking that all binary ops and right parens are 12948 * parens and then checking that all binary ops and right parens are
12949 * preceded by a valid expression (NUM_TOKEN). 12949 * preceded by a valid expression (NUM_TOKEN).
12950 * 12950 *
12951 * Note: It may be desireable to replace Aaron's test for whitespace with 12951 * Note: It may be desirable to replace Aaron's test for whitespace with
12952 * ctype's isspace() if it is used by another busybox applet or if additional 12952 * ctype's isspace() if it is used by another busybox applet or if additional
12953 * whitespace chars should be considered. Look below the "#include"s for a 12953 * whitespace chars should be considered. Look below the "#include"s for a
12954 * precompiler test. 12954 * precompiler test.
@@ -12974,7 +12974,7 @@ ulimitcmd(int argc, char **argv)
12974 * - realize comma separated - expr, expr 12974 * - realize comma separated - expr, expr
12975 * - realise ++expr --expr expr++ expr-- 12975 * - realise ++expr --expr expr++ expr--
12976 * - realise expr ? expr : expr (but, second expr calculate always) 12976 * - realise expr ? expr : expr (but, second expr calculate always)
12977 * - allow hexdecimal and octal numbers 12977 * - allow hexadecimal and octal numbers
12978 * - was restored loses XOR operator 12978 * - was restored loses XOR operator
12979 * - remove one goto label, added three ;-) 12979 * - remove one goto label, added three ;-)
12980 * - protect $((num num)) as true zero expr (Manuel`s error) 12980 * - protect $((num num)) as true zero expr (Manuel`s error)
@@ -12989,7 +12989,7 @@ ulimitcmd(int argc, char **argv)
12989typedef unsigned char operator; 12989typedef unsigned char operator;
12990 12990
12991/* An operator's token id is a bit of a bitfield. The lower 5 bits are the 12991/* An operator's token id is a bit of a bitfield. The lower 5 bits are the
12992 * precedence, and 3 high bits are an ID unique accross operators of that 12992 * precedence, and 3 high bits are an ID unique across operators of that
12993 * precedence. The ID portion is so that multiple operators can have the 12993 * precedence. The ID portion is so that multiple operators can have the
12994 * same precedence, ensuring that the leftmost one is evaluated first. 12994 * same precedence, ensuring that the leftmost one is evaluated first.
12995 * Consider * and /. */ 12995 * Consider * and /. */
@@ -13098,7 +13098,7 @@ typedef struct ARITCH_VAR_NUM {
13098 long contidional_second_val; 13098 long contidional_second_val;
13099 char contidional_second_val_initialized; 13099 char contidional_second_val_initialized;
13100 char *var; /* if NULL then is regular number, 13100 char *var; /* if NULL then is regular number,
13101 else is varable name */ 13101 else is variable name */
13102} v_n_t; 13102} v_n_t;
13103 13103
13104 13104
@@ -13356,7 +13356,7 @@ extern long arith (const char *expr, int *perrcode)
13356 13356
13357 /* Stack of integers */ 13357 /* Stack of integers */
13358 /* The proof that there can be no more than strlen(startbuf)/2+1 integers 13358 /* The proof that there can be no more than strlen(startbuf)/2+1 integers
13359 * in any given correct or incorrect expression is left as an excersize to 13359 * in any given correct or incorrect expression is left as an exercise to
13360 * the reader. */ 13360 * the reader. */
13361 v_n_t *numstack = alloca(((datasizes)/2)*sizeof(v_n_t)), 13361 v_n_t *numstack = alloca(((datasizes)/2)*sizeof(v_n_t)),
13362 *numstackptr = numstack; 13362 *numstackptr = numstack;
diff --git a/shell/cmdedit.c b/shell/cmdedit.c
index 9c66ce284..25d31a0e0 100644
--- a/shell/cmdedit.c
+++ b/shell/cmdedit.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Termios command line History and Editting. 3 * Termios command line History and Editing.
4 * 4 *
5 * Copyright (c) 1986-2003 may safely be consumed by a BSD or GPL license. 5 * Copyright (c) 1986-2003 may safely be consumed by a BSD or GPL license.
6 * Written by: Vladimir Oleynik <dzo@simtreas.ru> 6 * Written by: Vladimir Oleynik <dzo@simtreas.ru>
@@ -259,7 +259,7 @@ static inline void beep(void)
259 putchar('\007'); 259 putchar('\007');
260} 260}
261 261
262/* Move back one charactor */ 262/* Move back one character */
263/* special for slow terminal */ 263/* special for slow terminal */
264static void input_backward(int num) 264static void input_backward(int num)
265{ 265{
@@ -429,7 +429,7 @@ static void parse_prompt(const char *prmt_ptr)
429#endif 429#endif
430 430
431 431
432/* draw promt, editor line, and clear tail */ 432/* draw prompt, editor line, and clear tail */
433static void redraw(int y, int back_cursor) 433static void redraw(int y, int back_cursor)
434{ 434{
435 if (y > 0) /* up to start y */ 435 if (y > 0) /* up to start y */
@@ -466,7 +466,7 @@ static void input_backspace(void)
466} 466}
467 467
468 468
469/* Move forward one charactor */ 469/* Move forward one character */
470static void input_forward(void) 470static void input_forward(void)
471{ 471{
472 if (cursor < len) 472 if (cursor < len)
diff --git a/shell/hush.c b/shell/hush.c
index 6d31cdca5..49e2397ad 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -2646,7 +2646,7 @@ void update_ifs_map(void)
2646 mapset(ifs, 2); /* also flow through if quoted */ 2646 mapset(ifs, 2); /* also flow through if quoted */
2647} 2647}
2648 2648
2649/* most recursion does not come through here, the exeception is 2649/* most recursion does not come through here, the exception is
2650 * from builtin_source() */ 2650 * from builtin_source() */
2651int parse_stream_outer(struct in_str *inp, int flag) 2651int parse_stream_outer(struct in_str *inp, int flag)
2652{ 2652{
diff --git a/shell/msh.c b/shell/msh.c
index 5dc0b2b51..62e7844a8 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -70,7 +70,7 @@
70#define WAITCORE(s) (((s)&0200)!=0) 70#define WAITCORE(s) (((s)&0200)!=0)
71 71
72/* 72/*
73 * library and system defintions 73 * library and system definitions
74 */ 74 */
75typedef void xint; /* base type of jmp_buf, for not broken compilers */ 75typedef void xint; /* base type of jmp_buf, for not broken compilers */
76 76
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index ac326aa00..49deab2d7 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -59,7 +59,7 @@ static char lfile[MAXPATHLEN];
59static const char *logFilePath = __LOG_FILE; 59static const char *logFilePath = __LOG_FILE;
60 60
61#ifdef CONFIG_FEATURE_ROTATE_LOGFILE 61#ifdef CONFIG_FEATURE_ROTATE_LOGFILE
62/* max size of message file bevor being rotated */ 62/* max size of message file before being rotated */
63static int logFileSize = 200 * 1024; 63static int logFileSize = 200 * 1024;
64 64
65/* number of rotated message files */ 65/* number of rotated message files */
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index b9e875f41..ed4261162 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -475,7 +475,7 @@ check_aix_label( void )
475 * notice, this list of conditions and the following disclaimer in the 475 * notice, this list of conditions and the following disclaimer in the
476 * documentation and/or other materials provided with the distribution. 476 * documentation and/or other materials provided with the distribution.
477 * 3. All advertising materials mentioning features or use of this software 477 * 3. All advertising materials mentioning features or use of this software
478 * must display the following acknowledgement: 478 * must display the following acknowledgment:
479 * This product includes software developed by the University of 479 * This product includes software developed by the University of
480 * California, Berkeley and its contributors. 480 * California, Berkeley and its contributors.
481 * 4. Neither the name of the University nor the names of its contributors 481 * 4. Neither the name of the University nor the names of its contributors
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index 709a2a143..f6d7deaab 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -7,7 +7,7 @@
7 */ 7 */
8 8
9/* 9/*
10 * 09.11.91 - made the first rudimetary functions 10 * 09.11.91 - made the first rudimentary functions
11 * 11 *
12 * 10.11.91 - updated, does checking, no repairs yet. 12 * 10.11.91 - updated, does checking, no repairs yet.
13 * Sent out to the mailing-list for testing. 13 * Sent out to the mailing-list for testing.
@@ -53,7 +53,7 @@
53 * (Russell King). He made them for ARM. It would seem 53 * (Russell King). He made them for ARM. It would seem
54 * that the ARM is powerful enough to do this in C whereas 54 * that the ARM is powerful enough to do this in C whereas
55 * i386 and m64k must use assembly to get it fast >:-) 55 * i386 and m64k must use assembly to get it fast >:-)
56 * This should make minix fsck systemindependent. 56 * This should make minix fsck system-independent.
57 * (janl@math.uio.no, Nicolai Langfeldt) 57 * (janl@math.uio.no, Nicolai Langfeldt)
58 * 58 *
59 * 04.11.96 - Added minor fixes from Andreas Schwab to avoid compiler 59 * 04.11.96 - Added minor fixes from Andreas Schwab to avoid compiler
@@ -73,7 +73,7 @@
73 * unless you can be sure nobody is writing to it (and remember that the 73 * unless you can be sure nobody is writing to it (and remember that the
74 * kernel can write to it when it searches for files). 74 * kernel can write to it when it searches for files).
75 * 75 *
76 * Usuage: fsck [-larvsm] device 76 * Usage: fsck [-larvsm] device
77 * -l for a listing of all the filenames 77 * -l for a listing of all the filenames
78 * -a for automatic repairs (not implemented) 78 * -a for automatic repairs (not implemented)
79 * -r for repairs (interactive) (not implemented) 79 * -r for repairs (interactive) (not implemented)
diff --git a/util-linux/getopt.c b/util-linux/getopt.c
index 25eeab69b..e3b051388 100644
--- a/util-linux/getopt.c
+++ b/util-linux/getopt.c
@@ -37,7 +37,7 @@
37 * <misiek@misiek.eu.org>) 37 * <misiek@misiek.eu.org>)
38 * Ported to Busybox - Alfred M. Szmidt <ams@trillian.itslinux.org> 38 * Ported to Busybox - Alfred M. Szmidt <ams@trillian.itslinux.org>
39 * Removed --version/-V and --help/-h in 39 * Removed --version/-V and --help/-h in
40 * Removed prase_error(), using bb_error_msg() from Busybox instead 40 * Removed parse_error(), using bb_error_msg() from Busybox instead
41 * Replaced our_malloc with xmalloc and our_realloc with xrealloc 41 * Replaced our_malloc with xmalloc and our_realloc with xrealloc
42 * 42 *
43 */ 43 */
@@ -99,7 +99,7 @@ const char *normalize(const char *arg)
99 return BUFFER; 99 return BUFFER;
100 } 100 }
101 101
102 /* Each character in arg may take upto four characters in the result: 102 /* Each character in arg may take up to four characters in the result:
103 For a quote we need a closing quote, a backslash, a quote and an 103 For a quote we need a closing quote, a backslash, a quote and an
104 opening quote! We need also the global opening and closing quote, 104 opening quote! We need also the global opening and closing quote,
105 and one extra character for '\0'. */ 105 and one extra character for '\0'. */
@@ -278,7 +278,7 @@ void set_shell(const char *new_shell)
278 278
279 279
280/* Exit codes: 280/* Exit codes:
281 * 0) No errors, succesful operation. 281 * 0) No errors, successful operation.
282 * 1) getopt(3) returned an error. 282 * 1) getopt(3) returned an error.
283 * 2) A problem with parameter parsing for getopt(1). 283 * 2) A problem with parameter parsing for getopt(1).
284 * 3) Internal error, out of memory 284 * 3) Internal error, out of memory
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index 1f30ff498..a260d7448 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -34,7 +34,7 @@
34#include <unistd.h> 34#include <unistd.h>
35#include "busybox.h" 35#include "busybox.h"
36 36
37/* Copied from linux/rtc.h to eliminate the kernel dependancy */ 37/* Copied from linux/rtc.h to eliminate the kernel dependency */
38struct linux_rtc_time { 38struct linux_rtc_time {
39 int tm_sec; 39 int tm_sec;
40 int tm_min; 40 int tm_min;
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c
index 3c140ef2a..ffdc0b8c0 100644
--- a/util-linux/mkfs_minix.c
+++ b/util-linux/mkfs_minix.c
@@ -49,7 +49,7 @@
49 * 49 *
50 * Usage: mkfs [-c | -l filename ] [-v] [-nXX] [-iXX] device [size-in-blocks] 50 * Usage: mkfs [-c | -l filename ] [-v] [-nXX] [-iXX] device [size-in-blocks]
51 * 51 *
52 * -c for readablility checking (SLOW!) 52 * -c for readability checking (SLOW!)
53 * -l for getting a list of bad blocks from a file. 53 * -l for getting a list of bad blocks from a file.
54 * -n for namelength (currently the kernel only uses 14 or 30) 54 * -n for namelength (currently the kernel only uses 14 or 30)
55 * -i for number of inodes 55 * -i for number of inodes
@@ -602,7 +602,7 @@ static inline void setup_tables(void)
602 602
603/* 603/*
604 * Perform a test of a block; return the number of 604 * Perform a test of a block; return the number of
605 * blocks readable/writeable. 605 * blocks readable/writable.
606 */ 606 */
607static inline long do_check(char *buffer, int try, unsigned int current_block) 607static inline long do_check(char *buffer, int try, unsigned int current_block)
608{ 608{
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 3a241540e..35fd30323 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -31,7 +31,7 @@
31 * major adjustments to option parsing, and some serious 31 * major adjustments to option parsing, and some serious
32 * dieting all around. 32 * dieting all around.
33 * 33 *
34 * 1999-11-06 mtab suppport is back - andersee 34 * 1999-11-06 mtab support is back - andersee
35 * 35 *
36 * 2000-01-12 Ben Collins <bcollins@debian.org>, Borrowed utils-linux's 36 * 2000-01-12 Ben Collins <bcollins@debian.org>, Borrowed utils-linux's
37 * mount to add loop support. 37 * mount to add loop support.