summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libnetworking/libc/linkaddr.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-12-08 22:06:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-12-08 22:06:54 +0000
commit78d6a5000398cc4813a6644ab525ab32a056d066 (patch)
treed3ba47ff2e31fb63a1183c2e49d04bfac3cccac6 /c/src/exec/libnetworking/libc/linkaddr.c
parent2000-12-06 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-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 '')
-rw-r--r--c/src/exec/libnetworking/libc/linkaddr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/exec/libnetworking/libc/linkaddr.c b/c/src/exec/libnetworking/libc/linkaddr.c
index 28c16cff05..2bad464b12 100644
--- a/c/src/exec/libnetworking/libc/linkaddr.c
+++ b/c/src/exec/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;