From 05534209f104a435d91042fd4b816aaaae7b7b54 Mon Sep 17 00:00:00 2001 From: Vojtech Bocek Date: Wed, 11 Sep 2013 08:11:56 +0200 Subject: Add TWFunc::Exec_Cmd() with no 'result' agrument Signed-off-by: Vojtech Bocek Change-Id: Id8acff1ac9b3c7e4b562c80562a8ff42a1d132b9 --- partitionmanager.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'partitionmanager.cpp') diff --git a/partitionmanager.cpp b/partitionmanager.cpp index 4e72117dd..ca93a2ab1 100644 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -1635,8 +1635,8 @@ int TWPartitionManager::Partition_SDCard(void) { if (!SDext->UnMount(true)) return false; } - string result; - TWFunc::Exec_Cmd("umount \"$SWAPPATH\"", result); + + TWFunc::Exec_Cmd("umount \"$SWAPPATH\""); Device = SDCard->Actual_Block_Device; // Just use the root block device Device.resize(strlen("/dev/block/mmcblkX")); @@ -1688,7 +1688,7 @@ int TWPartitionManager::Partition_SDCard(void) { gui_print("Removing partition table...\n"); Command = "parted -s " + Device + " mklabel msdos"; LOGINFO("Command is: '%s'\n", Command.c_str()); - if (TWFunc::Exec_Cmd(Command, result) != 0) { + if (TWFunc::Exec_Cmd(Command) != 0) { LOGERR("Unable to remove partition table.\n"); Update_System_Details(); return false; @@ -1696,7 +1696,7 @@ int TWPartitionManager::Partition_SDCard(void) { gui_print("Creating FAT32 partition...\n"); Command = "parted " + Device + " mkpartfs primary fat32 0 " + fat_str + "MB"; LOGINFO("Command is: '%s'\n", Command.c_str()); - if (TWFunc::Exec_Cmd(Command, result) != 0) { + if (TWFunc::Exec_Cmd(Command) != 0) { LOGERR("Unable to create FAT32 partition.\n"); return false; } @@ -1704,7 +1704,7 @@ int TWPartitionManager::Partition_SDCard(void) { gui_print("Creating EXT partition...\n"); Command = "parted " + Device + " mkpartfs primary ext2 " + fat_str + "MB " + ext_str + "MB"; LOGINFO("Command is: '%s'\n", Command.c_str()); - if (TWFunc::Exec_Cmd(Command, result) != 0) { + if (TWFunc::Exec_Cmd(Command) != 0) { LOGERR("Unable to create EXT partition.\n"); Update_System_Details(); return false; @@ -1714,7 +1714,7 @@ int TWPartitionManager::Partition_SDCard(void) { gui_print("Creating swap partition...\n"); Command = "parted " + Device + " mkpartfs primary linux-swap " + ext_str + "MB " + swap_str + "MB"; LOGINFO("Command is: '%s'\n", Command.c_str()); - if (TWFunc::Exec_Cmd(Command, result) != 0) { + if (TWFunc::Exec_Cmd(Command) != 0) { LOGERR("Unable to create swap partition.\n"); Update_System_Details(); return false; @@ -1749,7 +1749,7 @@ int TWPartitionManager::Partition_SDCard(void) { Command = "mke2fs -t " + ext_format + " -m 0 " + SDext->Actual_Block_Device; gui_print("Formatting sd-ext as %s...\n", ext_format.c_str()); LOGINFO("Formatting sd-ext after partitioning, command: '%s'\n", Command.c_str()); - TWFunc::Exec_Cmd(Command, result); + TWFunc::Exec_Cmd(Command); } Update_System_Details(); -- cgit v1.2.3