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-27 12:25:22 +0400
commitf26abc454476bded89de516ebc099a3f62c54fb9 (patch)
tree6e6820c2058e4a9c1310840896e93485d57c42d8
parent2282219823f120b9237e56afb24c885a2ff87abc (diff)
downloadaccel-ppp-f26abc454476bded89de516ebc099a3f62c54fb9.tar.gz
accel-ppp-f26abc454476bded89de516ebc099a3f62c54fb9.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 6aef1a9f..e620668f 100644
--- a/accel-pppd/ctrl/pppoe/pppoe.c
+++ b/accel-pppd/ctrl/pppoe/pppoe.c
@@ -1350,7 +1350,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 ddc977ba..5ee7d347 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 e6040a07..1335338c 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 814240cd..b8feaa1f 100644
--- a/accel-pppd/ppp/ppp.c
+++ b/accel-pppd/ppp/ppp.c
@@ -160,7 +160,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;
}
}
@@ -171,7 +171,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 f916251d..abef1a05 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->ipv6->addr_list, entry) {
if (a->prefix_len == 128)
diff --git a/accel-pppd/triton/timer.c b/accel-pppd/triton/timer.c
index fa871b96..e5ebeb5c 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;
}