summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-01-21 14:49:31 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-01-21 14:49:31 +0000
commite570c7617d8c1032bf4c1c3cd0df2a7683ee80bf (patch)
tree93d6cae17218ad5f7c87c9b4790c8fd88e942343
parentPatch from Eric Norum <eric@cls.usask.ca>: (diff)
downloadrtems-e570c7617d8c1032bf4c1c3cd0df2a7683ee80bf.tar.bz2
Patch from Eric Norum <eric@cls.usask.ca> to remove warnings.
-rw-r--r--c/src/exec/libnetworking/rtems/rtems_showroute.c7
-rw-r--r--c/src/libnetworking/rtems/rtems_showroute.c7
-rw-r--r--cpukit/libnetworking/rtems/rtems_showroute.c7
3 files changed, 9 insertions, 12 deletions
diff --git a/c/src/exec/libnetworking/rtems/rtems_showroute.c b/c/src/exec/libnetworking/rtems/rtems_showroute.c
index e471ccc58c..c0d0b231e8 100644
--- a/c/src/exec/libnetworking/rtems/rtems_showroute.c
+++ b/c/src/exec/libnetworking/rtems/rtems_showroute.c
@@ -2,8 +2,6 @@
* $Id$
*/
-/* #include <stdlib.h> */
-
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/systm.h>
@@ -24,10 +22,11 @@
#include <arpa/inet.h>
/*
- * We'll use the application versions of malloc and free.
+ * We'll use the application versions of realloc and free.
*/
-#undef malloc
#undef free
+#undef malloc
+#include <stdlib.h>
/*
* Information per route
diff --git a/c/src/libnetworking/rtems/rtems_showroute.c b/c/src/libnetworking/rtems/rtems_showroute.c
index e471ccc58c..c0d0b231e8 100644
--- a/c/src/libnetworking/rtems/rtems_showroute.c
+++ b/c/src/libnetworking/rtems/rtems_showroute.c
@@ -2,8 +2,6 @@
* $Id$
*/
-/* #include <stdlib.h> */
-
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/systm.h>
@@ -24,10 +22,11 @@
#include <arpa/inet.h>
/*
- * We'll use the application versions of malloc and free.
+ * We'll use the application versions of realloc and free.
*/
-#undef malloc
#undef free
+#undef malloc
+#include <stdlib.h>
/*
* Information per route
diff --git a/cpukit/libnetworking/rtems/rtems_showroute.c b/cpukit/libnetworking/rtems/rtems_showroute.c
index e471ccc58c..c0d0b231e8 100644
--- a/cpukit/libnetworking/rtems/rtems_showroute.c
+++ b/cpukit/libnetworking/rtems/rtems_showroute.c
@@ -2,8 +2,6 @@
* $Id$
*/
-/* #include <stdlib.h> */
-
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/systm.h>
@@ -24,10 +22,11 @@
#include <arpa/inet.h>
/*
- * We'll use the application versions of malloc and free.
+ * We'll use the application versions of realloc and free.
*/
-#undef malloc
#undef free
+#undef malloc
+#include <stdlib.h>
/*
* Information per route