mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-02 07:45:48 +00:00
Merge remote-tracking branch 'cgutman/fix-warnings'
This commit is contained in:
commit
005407083b
@ -76,14 +76,15 @@ void loop_remove_fd(int fd) {
|
|||||||
int fdindex;
|
int fdindex;
|
||||||
|
|
||||||
for (int i=0;i<numFds;i++) {
|
for (int i=0;i<numFds;i++) {
|
||||||
if (fds[i].fd = fd)
|
if (fds[i].fd == fd) {
|
||||||
fdindex = i;
|
fdindex = i;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fdindex != numFds && numFds > 0) {
|
if (fdindex != numFds && numFds > 0) {
|
||||||
memcpy(&fds[fdindex], &fds[numFds], sizeof(struct pollfd));
|
memcpy(&fds[fdindex], &fds[numFds], sizeof(struct pollfd));
|
||||||
memcpy(&fdHandlers[fdindex], &fdHandlers[numFds], sizeof(FdHandler*));
|
memcpy(&fdHandlers[fdindex], &fdHandlers[numFds], sizeof(FdHandler));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ static void stream(PSERVER_DATA server, PCONFIGURATION config, enum platform sys
|
|||||||
#ifdef HAVE_SDL
|
#ifdef HAVE_SDL
|
||||||
gamepads += sdl_gamepads;
|
gamepads += sdl_gamepads;
|
||||||
#endif
|
#endif
|
||||||
int gamepad_mask;
|
int gamepad_mask = 0;
|
||||||
for (int i = 0; i < gamepads && i < 4; i++)
|
for (int i = 0; i < gamepads && i < 4; i++)
|
||||||
gamepad_mask = (gamepad_mask << 1) + 1;
|
gamepad_mask = (gamepad_mask << 1) + 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user