summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-08-27 12:25:22 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-08-29 12:12:09 +0400
commit36cc9c11a194be371dad562df8b2eff548586749 (patch)
tree8333a0a8cf6769790a9ec306c964c3a372c4d7c1
parentebbd6f580322767983ebf6b4049924d7e2de642f (diff)
downloadaccel-ppp-36cc9c11a194be371dad562df8b2eff548586749.tar.gz
accel-ppp-36cc9c11a194be371dad562df8b2eff548586749.zip
fix various typos
-rw-r--r--accel-pppd/ctrl/pppoe/pppoe.c2
-rw-r--r--accel-pppd/ipv6/dhcpv6.c2
-rw-r--r--accel-pppd/ipv6/nd.c2
-rw-r--r--accel-pppd/ppp/ppp.c4
-rw-r--r--accel-pppd/ppp/ppp_ifcfg.c2
-rw-r--r--accel-pppd/triton/timer.c2
6 files changed, 7 insertions, 7 deletions
diff --git a/accel-pppd/ctrl/pppoe/pppoe.c b/accel-pppd/ctrl/pppoe/pppoe.c
index 7db5511..b0734c8 100644
--- a/accel-pppd/ctrl/pppoe/pppoe.c
+++ b/accel-pppd/ctrl/pppoe/pppoe.c
@@ -1351,7 +1351,7 @@ static int init_secret(struct pppoe_serv_t *serv)
DES_cblock key;
if (read(urandom_fd, serv->secret, SECRET_LENGTH) < 0) {
- log_emerg("pppoe: faild to read /dev/urandom\n", strerror(errno));
+ log_emerg("pppoe: failed to read /dev/urandom\n", strerror(errno));
return -1;
}
diff --git a/accel-pppd/ipv6/dhcpv6.c b/accel-pppd/ipv6/dhcpv6.c
index 9388824..9160a75 100644
--- a/accel-pppd/ipv6/dhcpv6.c
+++ b/accel-pppd/ipv6/dhcpv6.c
@@ -878,7 +878,7 @@ static void load_dns(void)
continue;
if (inet_pton(AF_INET6, opt->val ? opt->val : opt->name, &conf_dns[conf_dns_count]) == 0) {
- log_error("dnsv6: faild to parse '%s'\n", opt->name);
+ log_error("dnsv6: failed to parse '%s'\n", opt->name);
continue;
}
conf_dns_count++;
diff --git a/accel-pppd/ipv6/nd.c b/accel-pppd/ipv6/nd.c
index 79a228c..7f5616b 100644
--- a/accel-pppd/ipv6/nd.c
+++ b/accel-pppd/ipv6/nd.c
@@ -453,7 +453,7 @@ static void load_dns(void)
continue;
if (inet_pton(AF_INET6, opt->val ? opt->val : opt->name, &conf_dns[conf_dns_count]) == 0) {
- log_error("dnsv6: faild to parse '%s'\n", opt->name);
+ log_error("dnsv6: failed to parse '%s'\n", opt->name);
continue;
}
conf_dns_count++;
diff --git a/accel-pppd/ppp/ppp.c b/accel-pppd/ppp/ppp.c
index 9a00667..116e134 100644
--- a/accel-pppd/ppp/ppp.c
+++ b/accel-pppd/ppp/ppp.c
@@ -126,7 +126,7 @@ int __export establish_ppp(struct ppp_t *ppp)
}
if (fcntl(ppp->unit_fd, F_SETFL, O_NONBLOCK)) {
- log_ppp_error("ppp: cann't to set nonblocking mode: %s\n", strerror(errno));
+ log_ppp_error("ppp: cannot set nonblocking mode: %s\n", strerror(errno));
goto exit_close_unit;
}
}
@@ -137,7 +137,7 @@ int __export establish_ppp(struct ppp_t *ppp)
}
if (fcntl(ppp->chan_fd, F_SETFL, O_NONBLOCK)) {
- log_ppp_error("ppp: cann't to set nonblocking mode: %s\n", strerror(errno));
+ log_ppp_error("ppp: cannot set nonblocking mode: %s\n", strerror(errno));
goto exit_close_unit;
}
diff --git a/accel-pppd/ppp/ppp_ifcfg.c b/accel-pppd/ppp/ppp_ifcfg.c
index bcad3f4..aa2aff7 100644
--- a/accel-pppd/ppp/ppp_ifcfg.c
+++ b/accel-pppd/ppp/ppp_ifcfg.c
@@ -98,7 +98,7 @@ void ppp_ifup(struct ppp_t *ppp)
ifr6.ifr6_ifindex = ppp->ifindex;
if (ioctl(sock6_fd, SIOCSIFADDR, &ifr6))
- log_ppp_error("ppp: faild to set LL IPv6 address: %s\n", strerror(errno));
+ log_ppp_error("ppp: failed to set LL IPv6 address: %s\n", strerror(errno));
list_for_each_entry(a, &ppp->ses.ipv6->addr_list, entry) {
if (a->prefix_len == 128)
diff --git a/accel-pppd/triton/timer.c b/accel-pppd/triton/timer.c
index fa871b9..e5ebeb5 100644
--- a/accel-pppd/triton/timer.c
+++ b/accel-pppd/triton/timer.c
@@ -41,7 +41,7 @@ int timer_init(void)
epoll_events = _malloc(max_events * sizeof(struct epoll_event));
if (!epoll_events) {
- fprintf(stderr,"timer:cann't allocate memory\n");
+ fprintf(stderr,"timer: cannot allocate memory\n");
return -1;
}