diff --git a/extendedcommands.c b/extendedcommands.c index 613ad05..949b767 100644 --- a/extendedcommands.c +++ b/extendedcommands.c @@ -62,7 +62,7 @@ int install_zip(const char* packagefilepath) ui_print("\n-- Installing: %s\n", packagefilepath); set_sdcard_update_bootloader_message(); int status = install_package(packagefilepath); - ui_reset_progress(); + ui_reset_progress(); if (status != INSTALL_SUCCESS) { ui_set_background(BACKGROUND_ICON_ERROR); ui_print("Installation aborted.\n"); @@ -412,16 +412,16 @@ int confirm_format() int format_non_mtd_device(const char* root) { - // if this is SDEXT:, don't worry about it. - if (0 == strcmp(root, "SDEXT:")) - { - struct stat st; - if (0 != stat("/dev/block/mmcblk0p2", &st)) - { - ui_print("No app2sd partition found. Skipping format of /sd-ext.\n"); - return 0; - } - } + // if this is SDEXT:, don't worry about it. + if (0 == strcmp(root, "SDEXT:")) + { + struct stat st; + if (0 != stat("/dev/block/mmcblk0p2", &st)) + { + ui_print("No app2sd partition found. Skipping format of /sd-ext.\n"); + return 0; + } + } char path[PATH_MAX]; translate_root_path(root, path, PATH_MAX); @@ -596,7 +596,7 @@ int run_script(char* filename) script_data[script_len] = '\0'; fclose(file); - int ret = run_script_from_buffer(script_data, script_len, filename); + int ret = run_script_from_buffer(script_data, script_len, filename); free(script_data); return ret; } diff --git a/nandroid.c b/nandroid.c index c4c92d8..9f039dd 100644 --- a/nandroid.c +++ b/nandroid.c @@ -106,7 +106,7 @@ int nandroid_backup(const char* backup_path) return print_and_error("Can't mount /sdcard\n"); int ret; - struct statfs s; + struct statfs s; if (0 != (ret = statfs("/sdcard", &s))) return print_and_error("Unable to stat /sdcard\n"); uint64_t bavail = s.f_bavail;