mirror of
https://github.com/libretro/RetroArch
synced 2025-04-15 23:42:30 +00:00
Kill some warnings
This commit is contained in:
parent
9ffffcd249
commit
ba6796b98f
@ -59,7 +59,7 @@ struct descriptor {
|
||||
uint16_t *value;
|
||||
};
|
||||
|
||||
struct message {
|
||||
struct remote_message {
|
||||
int port;
|
||||
int device;
|
||||
int index;
|
||||
@ -203,7 +203,7 @@ void NETRETROPAD_CORE_PREFIX(retro_get_system_av_info)(
|
||||
static void retropad_update_input(void)
|
||||
{
|
||||
struct descriptor *desc;
|
||||
struct message msg;
|
||||
struct remote_message msg;
|
||||
uint16_t state;
|
||||
uint16_t old;
|
||||
int offset;
|
||||
@ -250,7 +250,7 @@ static void retropad_update_input(void)
|
||||
msg.index = index;
|
||||
msg.id = id;
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
@ -243,7 +243,7 @@ void input_remote_poll(input_remote_t *handle)
|
||||
FD_ZERO(&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);
|
||||
|
||||
if (ret == sizeof(msg))
|
||||
|
Loading…
x
Reference in New Issue
Block a user