aboutsummaryrefslogtreecommitdiff
path: root/toys/pending
diff options
context:
space:
mode:
authorAntoni Villalonga i Noceras <antoni@friki.cat>2020-08-10 01:32:51 +0200
committerRob Landley <rob@landley.net>2020-08-11 07:24:28 -0500
commit98943e25c8d24423c74e4a31d70f274c78e35e51 (patch)
tree4b1fe94d65fd3902cccc9ad0077eb0ba6f747a1b /toys/pending
parentefb8060a591b6ed13c16c4034db43652e03f90d5 (diff)
downloadtoybox-98943e25c8d24423c74e4a31d70f274c78e35e51.tar.gz
Fix spelling errors
Diffstat (limited to 'toys/pending')
-rw-r--r--toys/pending/dhcp.c2
-rw-r--r--toys/pending/dhcp6.c4
-rw-r--r--toys/pending/dhcpd.c6
-rw-r--r--toys/pending/diff.c2
-rw-r--r--toys/pending/fdisk.c6
-rw-r--r--toys/pending/ip.c2
6 files changed, 11 insertions, 11 deletions
diff --git a/toys/pending/dhcp.c b/toys/pending/dhcp.c
index be8d4947..43e29423 100644
--- a/toys/pending/dhcp.c
+++ b/toys/pending/dhcp.c
@@ -428,7 +428,7 @@ static int strtoopt( char *str, uint8_t optonly)
options_list[count].len = sizeof(uint32_t);
options_list[count].val = xmalloc(sizeof(uint32_t));
convtmp = strtou32(valstr);
- if (convtmp < 0) error_exit("Invalid/wrong formated number %s", valstr);
+ if (convtmp < 0) error_exit("Invalid/wrong formatted number %s", valstr);
convtmp = htonl(convtmp);
memcpy(options_list[count].val, &convtmp, sizeof(uint32_t));
break;
diff --git a/toys/pending/dhcp6.c b/toys/pending/dhcp6.c
index 12d11553..72cda4f8 100644
--- a/toys/pending/dhcp6.c
+++ b/toys/pending/dhcp6.c
@@ -619,7 +619,7 @@ void dhcp6_main(void)
if (TT.state == DHCP6SOLICIT) {
if (mymsg->dhcp6.msgtype == DHCP6ADVERTISE ) {
if (!validate_ids()) {
- dbg("Invalid id recieved, solicit.\n");
+ dbg("Invalid id received, solicit.\n");
TT.state = DHCP6SOLICIT;
continue;
}
@@ -640,7 +640,7 @@ void dhcp6_main(void)
} else if (TT.state == DHCP6REQUEST || TT.state == DHCP6RENEW ) {
if (mymsg->dhcp6.msgtype == DHCP6REPLY) {
if (!validate_ids()) {
- dbg("Invalid id recieved, %d.\n", TT.state);
+ dbg("Invalid id received, %d.\n", TT.state);
TT.state = DHCP6REQUEST;
continue;
}
diff --git a/toys/pending/dhcpd.c b/toys/pending/dhcpd.c
index 4e79ca06..c5125e71 100644
--- a/toys/pending/dhcpd.c
+++ b/toys/pending/dhcpd.c
@@ -631,12 +631,12 @@ static int strtoopt(const char *str, void *var)
while(grp){
while(*grp == ' ' || *grp == '\t') grp++;
tp = strchr(grp, '/');
- if (!tp) error_exit("wrong formated static route option");
+ if (!tp) error_exit("wrong formatted static route option");
*tp = '\0';
mask = strtol(++tp, &tp, 10);
- if (striptovar(grp, (uint8_t*)&nip)<0) error_exit("wrong formated static route option");
+ if (striptovar(grp, (uint8_t*)&nip)<0) error_exit("wrong formatted static route option");
while(*tp == ' ' || *tp == '\t' || *tp == '-') tp++;
- if (striptovar(tp, (uint8_t*)&router)<0) error_exit("wrong formated static route option");
+ if (striptovar(tp, (uint8_t*)&router)<0) error_exit("wrong formatted static route option");
options_list[count].val = xrealloc(options_list[count].val, options_list[count].len + 1 + mask/8 + 4);
memcpy(((uint8_t*)options_list[count].val)+options_list[count].len, &mask, 1);
options_list[count].len += 1;
diff --git a/toys/pending/diff.c b/toys/pending/diff.c
index d7bb43c4..e93c622c 100644
--- a/toys/pending/diff.c
+++ b/toys/pending/diff.c
@@ -253,7 +253,7 @@ int bcomp(const void *a, const void *b)
* classes of lines in file[1], with e.last = true on the last element of each class.
* The elements are ordered by serial within classes.
* 4. Form the p vector stored in p_vector. p_vector[i], if non-zero, now points in e vector
- * to the begining of the equiv class of lines in file[1] equivalent to line
+ * to the beginning of the equiv class of lines in file[1] equivalent to line
* i in file[0].
* 5. Form the k-candidates as discribed in do_merge.
* 6. Create a vector J[i] = j, such that i'th line in file[0] is j'th line of
diff --git a/toys/pending/fdisk.c b/toys/pending/fdisk.c
index da0a4678..c29a49ee 100644
--- a/toys/pending/fdisk.c
+++ b/toys/pending/fdisk.c
@@ -433,7 +433,7 @@ static void consistency_check(const struct partition *p, int partition)
//Logical and Physical diff
if (g_cylinders <= ONE_K && (physbc != lbc || physbh != lbh || physbs != lbs)) {
- xprintf("Partition %u has different physical/logical beginings (Non-Linux?): \n", partition+1);
+ xprintf("Partition %u has different physical/logical beginnings (Non-Linux?): \n", partition+1);
xprintf("phys = (%u %u %u) ",physbc, physbh, physbs);
xprintf("logical = (%u %u %u)\n", lbc, lbh, lbs);
}
@@ -1157,7 +1157,7 @@ static void move_begning(int idx)
xprintf("Partition %u doesn't have data area\n", idx+1);
return;
}
- sprintf(mesg, "New begining of data (0 - %lld, default %lld): ",
+ sprintf(mesg, "New beginning of data (0 - %lld, default %lld): ",
(long long int)(end), (long long int)(start));
new_start = ask_value(mesg, 0, end, start);
if (new_start != start) {
@@ -1332,7 +1332,7 @@ static void expert_menu(void)
char *msg = "Expert Command ('m' for help): ";
choice = 0x20 | read_input(msg, NULL);
switch (choice) {
- case 'b': //move data begining in partition
+ case 'b': //move data beginning in partition
idx = ask_partition(num_parts);
move_begning(idx - 1);
break;
diff --git a/toys/pending/ip.c b/toys/pending/ip.c
index 621d1eb7..d8c891a5 100644
--- a/toys/pending/ip.c
+++ b/toys/pending/ip.c
@@ -1285,7 +1285,7 @@ static int ipaddr_listflush(char **argv)
if (!*argv)
error_exit("Incomplete command for \"flush\"");
if (TT.addressfamily == AF_PACKET)
- error_exit("Can't flush link Addressess");
+ error_exit("Can't flush link Addresses");
}
addrinfo.scope = -1;
while (*argv) {