summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2006-08-10 11:07:11 +0000
committerglebius <glebius@FreeBSD.org>2006-08-10 11:07:11 +0000
commit9c643e1ad664860c7a4b4862da4621f7436da105 (patch)
treeb23cc5675867cd126061ee7811fb621000c35bf5
parentcd184a0ca173a9d4626e0a586a52534a1eb56863 (diff)
downloadFreeBSD-src-9c643e1ad664860c7a4b4862da4621f7436da105.zip
FreeBSD-src-9c643e1ad664860c7a4b4862da4621f7436da105.tar.gz
Some perfectionizm against last revision.
Submitted by: ru
-rw-r--r--share/man/man4/ng_pppoe.44
-rw-r--r--sys/netgraph/ng_pppoe.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/share/man/man4/ng_pppoe.4 b/share/man/man4/ng_pppoe.4
index 7cde40c..d188269 100644
--- a/share/man/man4/ng_pppoe.4
+++ b/share/man/man4/ng_pppoe.4
@@ -236,8 +236,8 @@ ngctl msg fxp0:orphans pppoe_setmode '"3Com"'
.Ed
.It Dv NGM_PPPOE_SETENADDR
Set the node Ethernet address for outgoing datagrams.
-This message is important when node failed to obtain Ethernet address
-from peer on
+This message is important when a node has failed to obtain an Ethernet
+address from its peer on the
.Dv ethernet
hook, or when user wants to override this address with another one.
.Tn ASCII
diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c
index aed83a2..2b91d04 100644
--- a/sys/netgraph/ng_pppoe.c
+++ b/sys/netgraph/ng_pppoe.c
@@ -693,7 +693,7 @@ ng_pppoe_connect(hook_p hook)
{
const priv_p privp = NG_NODE_PRIVATE(NG_HOOK_NODE(hook));
struct ng_mesg *msg;
- int error = 0;
+ int error;
if (hook != privp->ethernet_hook)
return (0);
@@ -1023,7 +1023,7 @@ ng_pppoe_rcvmsg(node_p node, item_p item, hook_p lasthook)
ETHER_ADDR_LEN);
break;
default:
- error = EINVAL;
+ LEAVE(EINVAL);
}
break;
default:
OpenPOWER on IntegriCloud