diff options
Diffstat (limited to 'dnstest/init.c')
-rw-r--r-- | dnstest/init.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/dnstest/init.c b/dnstest/init.c index 5f595ec..d60ca46 100644 --- a/dnstest/init.c +++ b/dnstest/init.c @@ -17,6 +17,24 @@ #include <bsp.h> +#include <stdio.h> +#include <stdlib.h> +#include <rtems/rtems_bsdnet.h> +#include "../networkconfig.h" + +/* + * RTEMS Startup Task + */ +rtems_task +Init (rtems_task_argument ignored) +{ + void testDNS(void); + + rtems_bsdnet_initialize_network (); + testDNS (); + exit (0); +} + #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER #define CONFIGURE_RTEMS_INIT_TASKS_TABLE @@ -41,21 +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" - -/* - * RTEMS Startup Task - */ -rtems_task -Init (rtems_task_argument ignored) -{ - void testDNS(void); - - rtems_bsdnet_initialize_network (); - testDNS (); - exit (0); -} - |