diff --git a/file_ops.c b/file_ops.c index ebaa554fd2..d608c66c76 100644 --- a/file_ops.c +++ b/file_ops.c @@ -87,10 +87,10 @@ bool write_file(const char *path, const void *data, ssize_t size) */ static int read_generic_file(const char *path, void **buf, ssize_t *len) { - long ret = 0; - size_t content_buf_size = 0; - void *content_buf = NULL; - FILE *file = fopen(path, "rb"); + long ret = 0; + ssize_t content_buf_size = 0; + void *content_buf = NULL; + FILE *file = fopen(path, "rb"); if (!file) goto error; diff --git a/frontend/drivers/platform_apple.c b/frontend/drivers/platform_apple.c index 40e01b1317..7ca6564a8e 100644 --- a/frontend/drivers/platform_apple.c +++ b/frontend/drivers/platform_apple.c @@ -100,11 +100,12 @@ extern void apple_rarch_exited(void); static void frontend_apple_load_content(void) { - if (!driver.menu_ctx) + driver_t *driver = driver_get_ptr(); + if (!driver->menu_ctx) return; - if (!driver.menu) + if (!driver->menu) return; - if (!driver.menu->userdata) + if (!driver->menu->userdata) return; #ifdef IOS