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. --- cpukit/libnetworking/ChangeLog | 10 ++++++++++ cpukit/libnetworking/libc/linkaddr.c | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'cpukit/libnetworking') diff --git a/cpukit/libnetworking/ChangeLog b/cpukit/libnetworking/ChangeLog index a31e6912cb..c09d5419e9 100644 --- a/cpukit/libnetworking/ChangeLog +++ b/cpukit/libnetworking/ChangeLog @@ -1,3 +1,13 @@ +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. + 2000-11-30 Joel Sherrill * modem/ppp_tty.c: Changed to include since 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; -- cgit v1.2.3