summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Norum <WENorum@lbl.gov>2005-10-25 20:38:57 +0000
committerEric Norum <WENorum@lbl.gov>2005-10-25 20:38:57 +0000
commitea59f453397e86720643ad0b53ce20d848f522ad (patch)
tree152d855e668378a60c894217cc2e066fa2f2934e
parentRemove. (diff)
downloadrtems-ea59f453397e86720643ad0b53ce20d848f522ad.tar.bz2
Don't sign-extend address components.
-rw-r--r--cpukit/ChangeLog4
-rw-r--r--cpukit/libnetworking/rtems/rtems_showifstat.c4
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: