From e193f7a22ade048c7096a83f747aa4bdfcb16bc0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 19 Aug 2017 12:27:24 +0200 Subject: [PATCH] Style nits --- frontend/drivers/platform_gx.c | 46 ++++++++++++++++----------------- frontend/drivers/platform_wii.c | 11 +++++--- 2 files changed, 31 insertions(+), 26 deletions(-) diff --git a/frontend/drivers/platform_gx.c b/frontend/drivers/platform_gx.c index 9248d5558f53..8443348c639f 100644 --- a/frontend/drivers/platform_gx.c +++ b/frontend/drivers/platform_gx.c @@ -76,29 +76,29 @@ enum #if defined(HAVE_LOGGER) || defined(HAVE_FILE_LOGGER) static devoptab_t dotab_stdout = { - "stdout", // device name - 0, // size of file structure - NULL, // device open - NULL, // device close - NULL, // device write - NULL, // device read - NULL, // device seek - NULL, // device fstat - NULL, // device stat - NULL, // device link - NULL, // device unlink - NULL, // device chdir - NULL, // device rename - NULL, // device mkdir - 0, // dirStateSize - NULL, // device diropen_r - NULL, // device dirreset_r - NULL, // device dirnext_r - NULL, // device dirclose_r - NULL, // device statvfs_r - NULL, // device ftrunctate_r - NULL, // device fsync_r - NULL, // deviceData; + "stdout", /* device name */ + 0, /* size of file structure */ + NULL, /* device open */ + NULL, /* device close */ + NULL, /* device write */ + NULL, /* device read */ + NULL, /* device seek */ + NULL, /* device fstat */ + NULL, /* device stat */ + NULL, /* device link */ + NULL, /* device unlink */ + NULL, /* device chdir */ + NULL, /* device rename */ + NULL, /* device mkdir */ + 0, /* dirStateSize */ + NULL, /* device diropen_r */ + NULL, /* device dirreset_r */ + NULL, /* device dirnext_r */ + NULL, /* device dirclose_r */ + NULL, /* device statvfs_r */ + NULL, /* device ftrunctate_r */ + NULL, /* device fsync_r */ + NULL, /* deviceData; */ }; #endif diff --git a/frontend/drivers/platform_wii.c b/frontend/drivers/platform_wii.c index c50a2902a9c4..ac5ebfaea349 100644 --- a/frontend/drivers/platform_wii.c +++ b/frontend/drivers/platform_wii.c @@ -73,10 +73,15 @@ static void dol_copy_argv_path(const char *dolpath, const char *argpath) len += t_len; } /* a relative path */ - else if (strstr(dolpath, "sd:/") != dolpath && strstr(dolpath, "usb:/") != dolpath && - strstr(dolpath, "carda:/") != dolpath && strstr(dolpath, "cardb:/") != dolpath) + else if ( + (strstr(dolpath, "sd:/") != dolpath) && + (strstr(dolpath, "usb:/") != dolpath) && + (strstr(dolpath, "carda:/") != dolpath) && + (strstr(dolpath, "cardb:/") != dolpath) + ) { - fill_pathname_parent_dir(tmp, __system_argv->argv[0], sizeof(tmp)); + fill_pathname_parent_dir(tmp, + __system_argv->argv[0], sizeof(tmp)); t_len = strlen(tmp); memcpy(cmdline, tmp, t_len); len += t_len;