diff options
-rw-r--r-- | cpukit/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_showifstat.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 3806d2379e..d335a64ec8 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2005-10-25 Eric Norum <norume@aps.anl.gov> + + * libnetworking/rtems/rtems_showifstat.c: Don't sign-extend address components. + 2005-10-25 Ralf Corsepius <ralf.corsepius@rtems.org> * Makefile.am: Add telnetd. diff --git a/cpukit/libnetworking/rtems/rtems_showifstat.c b/cpukit/libnetworking/rtems/rtems_showifstat.c index 149cb52418..17722093fb 100644 --- a/cpukit/libnetworking/rtems/rtems_showifstat.c +++ b/cpukit/libnetworking/rtems/rtems_showifstat.c @@ -60,8 +60,8 @@ rtems_bsdnet_show_if_stats (void) case AF_LINK: { struct sockaddr_dl *sdl = (struct sockaddr_dl *)ifa->ifa_addr; - char *cp = LLADDR(sdl); - int i; + unsigned char *cp = (unsigned char *)LLADDR(sdl); + int i; switch ( sdl->sdl_type ) { case IFT_ETHER: |