summaryrefslogtreecommitdiffstats
path: root/ttcp
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-12 19:59:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-12 19:59:54 +0000
commit0417fe38d63d1f663a72e9afc13a68126d9e4576 (patch)
tree0a5b0ea86207649ad3c5e1f3bd3f2544727c1480 /ttcp
parent2009-05-12 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadnetwork-demos-0417fe38d63d1f663a72e9afc13a68126d9e4576.tar.bz2
2009-05-12 Joel Sherrill <joel.sherrill@OARcorp.com>
* init.c: Now build with libbsdport.
Diffstat (limited to 'ttcp')
-rw-r--r--ttcp/ChangeLog4
-rw-r--r--ttcp/init.c35
2 files changed, 22 insertions, 17 deletions
diff --git a/ttcp/ChangeLog b/ttcp/ChangeLog
index 3e3729f..c5718a3 100644
--- a/ttcp/ChangeLog
+++ b/ttcp/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-12 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * init.c: Now build with libbsdport.
+
2008-08-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* ttcp_orig/ttcp.c: Fix warning.
diff --git a/ttcp/init.c b/ttcp/init.c
index 8ca036d..f72f031 100644
--- a/ttcp/init.c
+++ b/ttcp/init.c
@@ -17,6 +17,24 @@
#include <bsp.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <rtems/rtems_bsdnet.h>
+#include "../networkconfig.h"
+
+void test_network (void);
+
+/*
+ * RTEMS Startup Task
+ */
+rtems_task
+Init (rtems_task_argument ignored)
+{
+ rtems_bsdnet_initialize_network ();
+ test_network ();
+ exit (0);
+}
+
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
@@ -41,20 +59,3 @@ 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
- */
-rtems_task
-Init (rtems_task_argument ignored)
-{
- rtems_bsdnet_initialize_network ();
- test_network ();
- exit (0);
-}