diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index 02a9fab659..b930457bcd 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -610,9 +610,9 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) sint16 x_offset = 0; sint16 y_offset = 0; - if(argc == 5) + if (argc == 5) { - char* endptr; + char *endptr; x_offset = strtol(argv[3], &endptr, 0); if (*endptr != 0) @@ -718,7 +718,7 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) //Resolve absolute sprite path - char* imagePath = platform_get_absolute_path(json_string_value(path), directoryPath); + char *imagePath = platform_get_absolute_path(json_string_value(path), directoryPath); rct_g1_element spriteElement; uint8 *buffer; diff --git a/src/openrct2/platform/posix.c b/src/openrct2/platform/posix.c index ada8793db8..d48efed209 100644 --- a/src/openrct2/platform/posix.c +++ b/src/openrct2/platform/posix.c @@ -261,7 +261,7 @@ bool platform_directory_delete(const utf8 *path) return true; } -char* platform_get_absolute_path(const char* relative_path,const char* base_path) +char* platform_get_absolute_path(const char * relative_path,const char * base_path) { char path[MAX_PATH];