Module: xenomai-3 Branch: next Commit: 6eae2e3cbc7b91dfc8cc0f6c4d56b82c40c2d49f URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=6eae2e3cbc7b91dfc8cc0f6c4d56b82c40c2d49f
Author: Norbert Lange <nolang...@gmail.com> Date: Wed Apr 25 15:05:00 2018 +0200 demo/posix, testsuite/smokey: silences some compiler warnings Signed-off-by: Norbert Lange <norbert.la...@andritz.com> --- demo/posix/cobalt/gpiopwm.c | 4 ++-- testsuite/smokey/posix-select/posix-select.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/demo/posix/cobalt/gpiopwm.c b/demo/posix/cobalt/gpiopwm.c index b34cbf1..eddd5cc 100644 --- a/demo/posix/cobalt/gpiopwm.c +++ b/demo/posix/cobalt/gpiopwm.c @@ -219,7 +219,7 @@ static void *gpiopwm_udp_ctrl_thread(void *cookie) saddr.sin_port = htons(port); saddr.sin_family = AF_INET; - if (bind(sockfd, &saddr, sizeof(saddr)) < 0) + if (bind(sockfd, (struct sockaddr *)&saddr, sizeof(saddr)) < 0) perror("bind"); clen = sizeof(caddr); @@ -230,7 +230,7 @@ static void *gpiopwm_udp_ctrl_thread(void *cookie) print_config("UDP Server\n"); memset(buf,'\0', blen); - ret = recvfrom(sockfd, buf, blen - 1, 0, &caddr, &clen); + ret = recvfrom(sockfd, buf, blen - 1, 0, (struct sockaddr *)&caddr, &clen); if (ret < 0) perror("recvfrom"); diff --git a/testsuite/smokey/posix-select/posix-select.c b/testsuite/smokey/posix-select/posix-select.c index 6bd88dd..e9bf938 100644 --- a/testsuite/smokey/posix-select/posix-select.c +++ b/testsuite/smokey/posix-select/posix-select.c @@ -30,6 +30,9 @@ #include <pthread.h> #include <boilerplate/atomic.h> #include <sys/select.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> #include <smokey/smokey.h> smokey_test_plugin(posix_select, _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git