Commit d07c478f authored by Norbert Lange's avatar Norbert Lange Committed by Philippe Gerum
Browse files

demo/posix, testsuite/smokey: silences some compiler warnings


Signed-off-by: default avatarNorbert Lange <norbert.lange@andritz.com>
parent 531ecd69
......@@ -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");
......
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment