mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 17:43:02 +00:00
Kill some warnings
This commit is contained in:
parent
9ffffcd249
commit
ba6796b98f
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user