Cleanups
This commit is contained in:
parent
64c515bac4
commit
ca83be1db4
|
@ -1449,7 +1449,7 @@ static int16_t *decode_audio(AVCodecContext *ctx, AVPacket *pkt,
|
|||
return buffer;
|
||||
}
|
||||
|
||||
while(true)
|
||||
for (;;)
|
||||
{
|
||||
ret = avcodec_receive_frame(ctx, frame);
|
||||
if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)
|
||||
|
|
|
@ -69,7 +69,8 @@
|
|||
static enum frontend_fork wiiu_fork_mode = FRONTEND_FORK_NONE;
|
||||
static const char *elf_path_cst = WIIU_SD_PATH "retroarch/retroarch.elf";
|
||||
|
||||
static bool exists(char *path) {
|
||||
static bool exists(char *path)
|
||||
{
|
||||
struct stat stat_buf = {0};
|
||||
|
||||
if (!path)
|
||||
|
@ -397,6 +398,7 @@ static void get_arguments(int *argc, char ***argv)
|
|||
u32 argc;
|
||||
char *argv[3];
|
||||
} *param = ARGV_PTR;
|
||||
|
||||
if (param->magic == ARGV_MAGIC)
|
||||
{
|
||||
*argc = param->argc;
|
||||
|
@ -435,7 +437,7 @@ static void main_loop(void)
|
|||
OSTime start_time;
|
||||
int status;
|
||||
|
||||
do
|
||||
for (;;)
|
||||
{
|
||||
if (video_driver_get_ptr(false))
|
||||
{
|
||||
|
@ -449,7 +451,7 @@ static void main_loop(void)
|
|||
|
||||
if (status == -1)
|
||||
break;
|
||||
} while(true);
|
||||
}
|
||||
}
|
||||
|
||||
static void SaveCallback(void)
|
||||
|
@ -488,7 +490,7 @@ int getBroadcastAddress(ACIpAddress *broadcast)
|
|||
ACIpAddress myIp, mySubnet;
|
||||
ACResult result;
|
||||
|
||||
if(broadcast == NULL)
|
||||
if (!broadcast)
|
||||
return -1;
|
||||
|
||||
result = ACGetAssignedAddress(&myIp);
|
||||
|
|
|
@ -623,7 +623,7 @@ static void qnx_handle_navigator_event(
|
|||
{
|
||||
case NAVIGATOR_WINDOW_THUMBNAIL:
|
||||
case NAVIGATOR_WINDOW_INVISIBLE:
|
||||
while(true)
|
||||
for (;;)
|
||||
{
|
||||
unsigned event_code;
|
||||
|
||||
|
@ -699,7 +699,7 @@ static void qnx_input_poll(void *data)
|
|||
qnx_input_t *qnx = (qnx_input_t*)data;
|
||||
|
||||
/* Request and process all available BPS events. */
|
||||
while(true)
|
||||
for (;;)
|
||||
{
|
||||
bps_event_t *event = NULL;
|
||||
int rc = bps_get_event(&event, 0);
|
||||
|
|
Loading…
Reference in New Issue