summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-06-21 18:26:30 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-06-21 18:26:30 +0000
commitba33011f7f1f48a626bb67447d36b447c39b2276 (patch)
treeaea5a55e5ae3afd55010f96040569e20376d5aa8
parent2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadnetwork-demos-ba33011f7f1f48a626bb67447d36b447c39b2276.tar.bz2
2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* init.c: More warnings removed.
-rw-r--r--dnstest/ChangeLog4
-rw-r--r--dnstest/init.c1
-rw-r--r--http/ChangeLog4
-rw-r--r--http/init.c2
-rw-r--r--netlink/ChangeLog4
-rw-r--r--netlink/init.c8
-rw-r--r--ntp/ChangeLog4
-rw-r--r--ntp/init.c20
-rw-r--r--ttcp/ChangeLog4
-rw-r--r--ttcp/init.c3
10 files changed, 40 insertions, 14 deletions
diff --git a/dnstest/ChangeLog b/dnstest/ChangeLog
index b46eb56..2b904c5 100644
--- a/dnstest/ChangeLog
+++ b/dnstest/ChangeLog
@@ -1,5 +1,9 @@
2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
+ * init.c: More warnings removed.
+
+2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
+
* init.c: confdefs.h should be rtems/confdefs.h
2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
diff --git a/dnstest/init.c b/dnstest/init.c
index e9df1bf..5f595ec 100644
--- a/dnstest/init.c
+++ b/dnstest/init.c
@@ -42,6 +42,7 @@ rtems_task Init (rtems_task_argument argument);
#include <rtems/confdefs.h>
#include <stdio.h>
+#include <stdlib.h>
#include <rtems/rtems_bsdnet.h>
#include "../networkconfig.h"
diff --git a/http/ChangeLog b/http/ChangeLog
index 179a5a1..d8e28f3 100644
--- a/http/ChangeLog
+++ b/http/ChangeLog
@@ -1,5 +1,9 @@
2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
+ * init.c: More warnings removed.
+
+2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
+
* Makefile, init.c, system.h: Now compiles reasonably cleanly with CVS
head.
diff --git a/http/init.c b/http/init.c
index 43d8f42..eb16971 100644
--- a/http/init.c
+++ b/http/init.c
@@ -102,7 +102,7 @@ rtems_task Init(
#if defined(USE_FTPD)
rtems_initialize_ftpd();
- status = Untar_FromMemory((unsigned char *)(&TARFILE_START), &TARFILE_SIZE);
+ status = Untar_FromMemory((void *)(&TARFILE_START), (size_t)&TARFILE_SIZE);
#endif
#if defined(USE_HTTPD)
diff --git a/netlink/ChangeLog b/netlink/ChangeLog
index 5b6dae9..76ef83b 100644
--- a/netlink/ChangeLog
+++ b/netlink/ChangeLog
@@ -1,5 +1,9 @@
2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
+ * init.c: More warnings removed.
+
+2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
+
* Makefile, init.c: Now compiles reasonably cleanly with CVS head.
2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
diff --git a/netlink/init.c b/netlink/init.c
index 43391ba..ca4fb25 100644
--- a/netlink/init.c
+++ b/netlink/init.c
@@ -91,15 +91,15 @@ rtems_task Init(
rtems_bsdnet_initialize_network ();
#if INCLUDE_FTPD
- status = Untar_FromMemory((unsigned char *)(&_binary_tarfile_start),
- &_binary_tarfile_size);
+ status = Untar_FromMemory((void *)(&_binary_tarfile_start),
+ (size_t)&_binary_tarfile_size);
rtems_initialize_ftpd();
#endif
#if INCLUDE_HTTPD
- status = Untar_FromMemory((unsigned char *)(&_binary_tarfile_start),
- &_binary_tarfile_size);
+ status = Untar_FromMemory((void *)(&_binary_tarfile_start),
+ (size_t)&_binary_tarfile_size);
rtems_initialize_webserver();
#endif
diff --git a/ntp/ChangeLog b/ntp/ChangeLog
index 127312c..485855e 100644
--- a/ntp/ChangeLog
+++ b/ntp/ChangeLog
@@ -1,5 +1,9 @@
2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
+ * init.c: More warnings removed.
+
+2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
+
* init.c: confdefs.h should be rtems/confdefs.h
2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
diff --git a/ntp/init.c b/ntp/init.c
index 8d1378c..ac48775 100644
--- a/ntp/init.c
+++ b/ntp/init.c
@@ -42,6 +42,7 @@ rtems_task Init (rtems_task_argument argument);
#include <rtems/confdefs.h>
#include <stdio.h>
+#include <stdlib.h>
#include <rtems/rtems_bsdnet.h>
#include <rtems/error.h>
#include "../networkconfig.h"
@@ -69,14 +70,15 @@ Init (rtems_task_argument ignored)
sc = rtems_clock_get (RTEMS_CLOCK_GET_TOD, &now);
if (sc != RTEMS_SUCCESSFUL)
printf ("Failed to get time of day: %s\n", rtems_status_text (sc));
- printf ("The time is **** %.4d-%.2d-%.2d %.2d:%.2d:%.2d.%.3d (%d) ****\n",
- now.year,
- now.month,
- now.day,
- now.hour,
- now.minute,
- now.second,
- (now.ticks * 1000) / ticksPerSecond,
- now.ticks);
+ printf (
+ "The time is **** %.4ld-%.2ld-%.2ld %.2ld:%.2ld:%.2ld.%.3ld (%ld) ****\n",
+ (long) now.year,
+ (long) now.month,
+ (long) now.day,
+ (long) now.hour,
+ (long) now.minute,
+ (long) now.second,
+ (long) ((now.ticks * 1000) / ticksPerSecond),
+ (long) now.ticks);
exit (0);
}
diff --git a/ttcp/ChangeLog b/ttcp/ChangeLog
index b4a7263..671d197 100644
--- a/ttcp/ChangeLog
+++ b/ttcp/ChangeLog
@@ -1,5 +1,9 @@
2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
+ * init.c: More warnings removed.
+
+2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
+
* rtems_ttcp.c, ttcp_orig/ttcp.c: Now compiles reasonably cleanly with
CVS head.
diff --git a/ttcp/init.c b/ttcp/init.c
index b32a8c4..a7a520f 100644
--- a/ttcp/init.c
+++ b/ttcp/init.c
@@ -42,9 +42,12 @@ rtems_task Init (rtems_task_argument argument);
#include <rtems/confdefs.h>
#include <stdio.h>
+#include <stdlib.h>
#include <rtems/rtems_bsdnet.h>
#include "../networkconfig.h"
+void test_network (void);
+
/*
* RTEMS Startup Task
*/