diff options
author | Joel Sherrill <joel@rtems.org> | 2021-05-21 12:43:28 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-05-21 12:44:19 -0500 |
commit | 402b9a60a54990356ff2efa98eb61b3fd2372ce9 (patch) | |
tree | 85d3bae8a4ce1a67dd94114525002df05913a232 /mcast | |
parent | Add various .gitignore files (diff) | |
download | network-demos-402b9a60a54990356ff2efa98eb61b3fd2372ce9.tar.bz2 |
Misc: Fix various warnings
Diffstat (limited to 'mcast')
-rw-r--r-- | mcast/init.c | 7 | ||||
-rw-r--r-- | mcast/mcast.c | 1 | ||||
-rw-r--r-- | mcast/mcast_route.c | 1 |
3 files changed, 8 insertions, 1 deletions
diff --git a/mcast/init.c b/mcast/init.c index fc6f29d..29073a9 100644 --- a/mcast/init.c +++ b/mcast/init.c @@ -17,6 +17,7 @@ #include <stdio.h> #include <stdlib.h> +#include <rtems/bspIo.h> #include <rtems/rtems_bsdnet.h> #include "../networkconfig.h" @@ -46,6 +47,10 @@ Init (rtems_task_argument ignored) printf("Loading filesystem image\n"); status = Untar_FromMemory( (char *)FilesystemImage, FilesystemImage_size ); + if (status != RTEMS_SUCCESSFUL) { + printk("Untar failed!\n"); + exit(1); + } printk( "Initializing network\n" ); rtems_bsdnet_initialize_network (); @@ -64,7 +69,7 @@ Init (rtems_task_argument ignored) #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER #define CONFIGURE_RTEMS_INIT_TASKS_TABLE -#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20 +#define CONFIGURE_MAXIMUM_FILE_DESCRIPTORS 20 #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM #define CONFIGURE_EXECUTIVE_RAM_SIZE (512*1024) diff --git a/mcast/mcast.c b/mcast/mcast.c index 87c0517..01f162f 100644 --- a/mcast/mcast.c +++ b/mcast/mcast.c @@ -15,6 +15,7 @@ #include <stdlib.h> #include <inttypes.h> #include <string.h> +#include <unistd.h> #include "mcast_params.h" diff --git a/mcast/mcast_route.c b/mcast/mcast_route.c index 4d1df7a..eae5827 100644 --- a/mcast/mcast_route.c +++ b/mcast/mcast_route.c @@ -36,6 +36,7 @@ addresses outside this range. #include <arpa/inet.h> #include <stdio.h> +#include <string.h> #include <sys/errno.h> |