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 /cpukit/libnetworking/libc/linkaddr.c | |
parent | dfa6d4b758fe708e9ebc6e319146b88000faf727 (diff) |
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 'cpukit/libnetworking/libc/linkaddr.c')
-rw-r--r-- | cpukit/libnetworking/libc/linkaddr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libnetworking/libc/linkaddr.c b/cpukit/libnetworking/libc/linkaddr.c index 28c16cff05..2bad464b12 100644 --- a/cpukit/libnetworking/libc/linkaddr.c +++ b/cpukit/libnetworking/libc/linkaddr.c @@ -60,7 +60,8 @@ link_addr(addr, sdl) { register char *cp = sdl->sdl_data; char *cplim = sdl->sdl_len + (char *)sdl; - register int byte = 0, state = NAMING, new; + register int byte = 0, state = NAMING, + new=0; /* new=0 to avoid warning */ bzero((char *)&sdl->sdl_family, sdl->sdl_len - 1); sdl->sdl_family = AF_LINK; |