summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/monitor/mon-network.c
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2007-12-22 08:27:18 +0000
committerChris Johns <chrisj@rtems.org>2007-12-22 08:27:18 +0000
commit1ff9922df0f6e5f129299847d0f5eccbc8d6806c (patch)
tree07d27ca9b48c51998530281353a246286fdf1698 /cpukit/libmisc/monitor/mon-network.c
parent2007-12-21 Xi Yang <hiyangxi@gmail.com> (diff)
downloadrtems-1ff9922df0f6e5f129299847d0f5eccbc8d6806c.tar.bz2
2007-12-22 Chris Johns <chrisj@rtems.org>
* configure.ac: fixed bug that always enabled strict order mutexes. * score/inline/rtems/score/coremutex.inl: Fixed coding standard. * score/src/coremutex.c: Add the holder's thread to the lock_mutex list if the mutex is initialised locked. * libnetworking/rtems/rtems_glue.c: Changed semaphore error message to show the error is an rtems-net error. * libmisc/monitor/mon-network.c: Removed warnings. * telnetd/icmds.c: Changed shell_* to rtems_shell_*. * score/Makefile.am: Fixed typo that stopped 'make tags' working. * libmisc/shell/err.c, libmisc/shell/err.h, libmisc/shell/errx.c, libmisc/shell/extern-cp.h, libmisc/shell/fts.c, libmisc/shell/fts.h, libmisc/shell/main_cp.c, libmisc/shell/utils-cp.c, libmisc/shell/verr.c, libmisc/shell/verrx.c, libmisc/shell/vwarn.c, libmisc/shell/vwarnx.c, libmisc/shell/warn.c, libmisc/shell/warnx.c: New. Ported from BSD. * libmisc/shell/shellconfig.h: Add the cp command. * libmisc/Makefile.am: Add the new files to the shell. * libmisc/shell/shell.c, libmisc/shell/shell.h: Add scripting support. * libblock/src/flashdisk.c: Fixed disk drive count size setting bug.
Diffstat (limited to 'cpukit/libmisc/monitor/mon-network.c')
-rw-r--r--cpukit/libmisc/monitor/mon-network.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/libmisc/monitor/mon-network.c b/cpukit/libmisc/monitor/mon-network.c
index 7aff60f539..fd53682e85 100644
--- a/cpukit/libmisc/monitor/mon-network.c
+++ b/cpukit/libmisc/monitor/mon-network.c
@@ -326,7 +326,10 @@ void mon_route(int argc, char *argv[], uint32_t command_arg,
flags |= RTF_HOST;
}
- rc = rtems_bsdnet_rtrequest(cmd, &dst, &gw, &netmask, flags, NULL);
+ rc = rtems_bsdnet_rtrequest(cmd,
+ (struct sockaddr*) &dst,
+ (struct sockaddr*) &gw,
+ (struct sockaddr*) &netmask, flags, NULL);
if (rc < 0) {
printf("Error adding route\n");
}