From 98943e25c8d24423c74e4a31d70f274c78e35e51 Mon Sep 17 00:00:00 2001 From: Antoni Villalonga i Noceras Date: Mon, 10 Aug 2020 01:32:51 +0200 Subject: Fix spelling errors --- toys/pending/dhcp.c | 2 +- toys/pending/dhcp6.c | 4 ++-- toys/pending/dhcpd.c | 6 +++--- toys/pending/diff.c | 2 +- toys/pending/fdisk.c | 6 +++--- toys/pending/ip.c | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) (limited to 'toys/pending') 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) { -- cgit v1.2.3