projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d84018e
)
ppp: Fix set-but-unused gcc47 warning
author
Sepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 8 Feb 2013 10:57:34 +0000 (18:57 +0800)
committer
Sepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 8 Feb 2013 10:57:34 +0000 (18:57 +0800)
sys/net/ppp/if_ppp.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/net/ppp/if_ppp.c
b/sys/net/ppp/if_ppp.c
index
66b1404
..
2449d50
100644
(file)
--- a/
sys/net/ppp/if_ppp.c
+++ b/
sys/net/ppp/if_ppp.c
@@
-1076,12
+1076,12
@@
ppp_dequeue(struct ppp_softc *sc)
if (protocol != PPP_LCP && protocol != PPP_CCP
&& sc->sc_xc_state && (sc->sc_flags & SC_COMP_RUN)) {
struct mbuf *mcomp = NULL;
- int slen, clen;
+ int slen;
slen = 0;
for (mp = m; mp != NULL; mp = mp->m_next)
slen += mp->m_len;
- clen = (*sc->sc_xcomp->compress)
+ (*sc->sc_xcomp->compress)
(sc->sc_xc_state, &mcomp, m, slen, sc->sc_if.if_mtu + PPP_HDRLEN);
if (mcomp != NULL) {
if (sc->sc_flags & SC_CCP_UP) {