Skip to content

Commit

Permalink
Style nits
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Aug 19, 2017
1 parent 822e2fd commit e193f7a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 26 deletions.
46 changes: 23 additions & 23 deletions frontend/drivers/platform_gx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 8 additions & 3 deletions frontend/drivers/platform_wii.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e193f7a

Please sign in to comment.