Kill some warnings

This commit is contained in:
Alcaro 2016-08-26 18:32:54 +02:00
parent 9ffffcd249
commit ba6796b98f
2 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ struct descriptor {
uint16_t *value; uint16_t *value;
}; };
struct message { struct remote_message {
int port; int port;
int device; int device;
int index; int index;
@ -203,7 +203,7 @@ void NETRETROPAD_CORE_PREFIX(retro_get_system_av_info)(
static void retropad_update_input(void) static void retropad_update_input(void)
{ {
struct descriptor *desc; struct descriptor *desc;
struct message msg; struct remote_message msg;
uint16_t state; uint16_t state;
uint16_t old; uint16_t old;
int offset; int offset;
@ -250,7 +250,7 @@ static void retropad_update_input(void)
msg.index = index; msg.index = index;
msg.id = id; msg.id = id;
msg.state = state; msg.state = state;
if (sendto(s, &msg, sizeof(msg), 0, (struct sockaddr *)&si_other, sizeof(si_other)) == -1) if (sendto(s, (char*)&msg, sizeof(msg), 0, (struct sockaddr *)&si_other, sizeof(si_other)) == -1)
NETRETROPAD_CORE_PREFIX(log_cb)(RETRO_LOG_INFO, "Error sending data!\n"); NETRETROPAD_CORE_PREFIX(log_cb)(RETRO_LOG_INFO, "Error sending data!\n");
} }
} }

View File

@ -243,7 +243,7 @@ void input_remote_poll(input_remote_t *handle)
FD_ZERO(&fds); FD_ZERO(&fds);
FD_SET(handle->net_fd[user], &fds); FD_SET(handle->net_fd[user], &fds);
ret = recvfrom(handle->net_fd[user], &msg, ret = recvfrom(handle->net_fd[user], (char*)&msg,
sizeof(msg), 0, NULL, NULL); sizeof(msg), 0, NULL, NULL);
if (ret == sizeof(msg)) if (ret == sizeof(msg))