mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Making sure the are no compiler warnings on adhoc code on android
This commit is contained in:
parent
8d68e917b7
commit
2808903663
2 changed files with 3 additions and 5 deletions
|
@ -1328,7 +1328,7 @@ int friendFinder(){
|
|||
else {
|
||||
// Update Ping Time
|
||||
lastping = now;
|
||||
DEBUG_LOG(SCENET, "FriendFinder: Sending OPCODE_PING (%llu)", now);
|
||||
DEBUG_LOG(SCENET, "FriendFinder: Sending OPCODE_PING (%llu)", static_cast<unsigned long long>(now));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1553,10 +1553,8 @@ int PollAdhocSocket(SceNetAdhocPollSd* sds, int count, int timeout) {
|
|||
if (affectedsockets > 0) {
|
||||
affectedsockets = 0;
|
||||
for (int i = 0; i < count; i++) {
|
||||
s32_le* fd_flags;
|
||||
if (sds[i].id > 0 && sds[i].id <= MAX_SOCKET && adhocSockets[sds[i].id - 1] != NULL) {
|
||||
auto sock = adhocSockets[sds[i].id - 1];
|
||||
fd_flags = &sock->flags;
|
||||
if (sock->type == SOCK_PTP) {
|
||||
fd = sock->data.ptp.id;
|
||||
}
|
||||
|
@ -1572,10 +1570,10 @@ int PollAdhocSocket(SceNetAdhocPollSd* sds, int count, int timeout) {
|
|||
sds[i].revents |= ADHOC_EV_ALERT; // Does Alert can be raised on revents regardless of events bitmask?
|
||||
if (sds[i].revents) affectedsockets++;
|
||||
|
||||
if (*fd_flags & ADHOC_F_ALERTPOLL) {
|
||||
if (sock->flags & ADHOC_F_ALERTPOLL) {
|
||||
affectedsockets = ERROR_NET_ADHOC_SOCKET_ALERTED;
|
||||
// FIXME: Should we clear the flag after alert signaled?
|
||||
*fd_flags &= ~ADHOC_F_ALERTPOLL;
|
||||
sock->flags &= ~ADHOC_F_ALERTPOLL;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue