aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/dhcpd.c
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/dhcpd.c
parentefb8060a591b6ed13c16c4034db43652e03f90d5 (diff)
downloadtoybox-98943e25c8d24423c74e4a31d70f274c78e35e51.tar.gz
Fix spelling errors
Diffstat (limited to 'toys/pending/dhcpd.c')
-rw-r--r--toys/pending/dhcpd.c6
1 files changed, 3 insertions, 3 deletions
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;