summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2013-08-30 04:59:14 +0200
committerDees_Troy <dees_troy@teamw.in>2013-08-30 04:59:14 +0200
commitb3265ab3582c539902892ca1fdc81a2474397168 (patch)
treecdbb4ce25792fcadf6ed1c8dfe456ee33d8b7cfe /partition.cpp
parentReally fix TWFunc::tw_chmod() for 3-character mode string (diff)
downloadandroid_bootable_recovery-b3265ab3582c539902892ca1fdc81a2474397168.tar
android_bootable_recovery-b3265ab3582c539902892ca1fdc81a2474397168.tar.gz
android_bootable_recovery-b3265ab3582c539902892ca1fdc81a2474397168.tar.bz2
android_bootable_recovery-b3265ab3582c539902892ca1fdc81a2474397168.tar.lz
android_bootable_recovery-b3265ab3582c539902892ca1fdc81a2474397168.tar.xz
android_bootable_recovery-b3265ab3582c539902892ca1fdc81a2474397168.tar.zst
android_bootable_recovery-b3265ab3582c539902892ca1fdc81a2474397168.zip
Diffstat (limited to 'partition.cpp')
-rw-r--r--partition.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/partition.cpp b/partition.cpp
index e6c622177..5359503bc 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1265,13 +1265,9 @@ bool TWPartition::Wipe_EXT4() {
if (!UnMount(true))
return false;
-#ifdef USE_EXT4
+#if defined(HAVE_SELINUX) && defined(USE_EXT4)
gui_print("Formatting %s using make_ext4fs function.\n", Display_Name.c_str());
-#ifdef HAVE_SELINUX
if (make_ext4fs(Actual_Block_Device.c_str(), Length, Mount_Point.c_str(), selinux_handle) != 0) {
-#else
- if (make_ext4fs(Actual_Block_Device.c_str(), Length) != 0) {
-#endif
LOGERR("Unable to wipe '%s' using function call.\n", Mount_Point.c_str());
return false;
} else {