From 78d6a5000398cc4813a6644ab525ab32a056d066 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 8 Dec 2000 22:06:54 +0000 Subject: 2000-12-08 Joel Sherrill * 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. --- c/src/exec/libnetworking/libc/linkaddr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'c/src/exec/libnetworking/libc') 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; -- cgit v1.2.3