diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-12-08 22:06:54 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-12-08 22:06:54 +0000 |
commit | 78d6a5000398cc4813a6644ab525ab32a056d066 (patch) | |
tree | d3ba47ff2e31fb63a1183c2e49d04bfac3cccac6 /c/src/libnetworking/modem/pppcompress.c | |
parent | 2000-12-06 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-78d6a5000398cc4813a6644ab525ab32a056d066.tar.bz2 |
2000-12-08 Joel Sherrill <joel@OARcorp.com>
* libc/linkaddr.c: Initialized variable to remove warning.
* modem/ppp.c, modem/ppp_tty.c: Made numerous variable declarations
conditional on PPP_COMPRESS and PPP_FILTER. Commented out variables
that were not used because the code using them was commented out.
Removed totally unused variables.
* modem/pppcompress.c: Added parentheses to avoid warnings.
* pppd/pppmain.c: Removed numerous warnings.
Diffstat (limited to 'c/src/libnetworking/modem/pppcompress.c')
-rw-r--r-- | c/src/libnetworking/modem/pppcompress.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c/src/libnetworking/modem/pppcompress.c b/c/src/libnetworking/modem/pppcompress.c index a7d2734c8d..aebe441fd3 100644 --- a/c/src/libnetworking/modem/pppcompress.c +++ b/c/src/libnetworking/modem/pppcompress.c @@ -278,19 +278,19 @@ vj_compress_tcp(m, ip, comp, compress_cid) * with it. */ goto uncompressed; - if (deltaS = (u_short)(ntohs(th->th_win) - ntohs(oth->th_win))) { + if ((deltaS = (u_short)(ntohs(th->th_win) - ntohs(oth->th_win)))) { ENCODE(deltaS); changes |= NEW_W; } - if (deltaA = ntohl(th->th_ack) - ntohl(oth->th_ack)) { + if ((deltaA = ntohl(th->th_ack) - ntohl(oth->th_ack))) { if (deltaA > 0xffff) goto uncompressed; ENCODE(deltaA); changes |= NEW_A; } - if (deltaS = ntohl(th->th_seq) - ntohl(oth->th_seq)) { + if ((deltaS = ntohl(th->th_seq) - ntohl(oth->th_seq))) { if (deltaS > 0xffff) goto uncompressed; ENCODE(deltaS); |