[haiku-commits] Re: haiku: hrev50661 - src/apps/webpositive src/add-ons/kernel/partitioning_systems/gpt build/jam/packages

  • From: Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 03 Nov 2016 19:55:34 +0000


Commit:      b7bc818b0eb5614cdc11b8eb1eab05abea462641
URL:         http://cgit.haiku-os.org/haiku/commit/?id=b7bc818b0eb5
Author:      Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
Date:        Thu Nov  3 06:38:10 2016 UTC

style fix.


----------------------------------------------------------------------------

diff --git a/src/add-ons/kernel/partitioning_systems/gpt/efi_gpt.cpp
b/src/add-ons/kernel/partitioning_systems/gpt/efi_gpt.cpp
index cbff2ef..0ba5d48 100644
--- a/src/add-ons/kernel/partitioning_systems/gpt/efi_gpt.cpp
+++ b/src/add-ons/kernel/partitioning_systems/gpt/efi_gpt.cpp
@@ -742,17 +742,17 @@ efi_gpt_uninitialize(int fd, partition_id
partitionID, off_t partitionSize,

        update_disk_device_job_progress(job, 0.0);

-       const int header_size = partition->block_size * 3;
+       const int headerSize = partition->block_size * 3;
        // The first block is the protective MBR
        // The second block is the GPT header
        // The third block is the start of the partition list (it can span
more
        // blocks, but that doesn't matter as soon as the header is
erased).

-       uint8 buffer[header_size];
+       uint8 buffer[headerSize];
        memset(buffer, 0xE5, sizeof(buffer));

        // Erase the first blocks
-       if (write_pos(fd, 0, &buffer, header_size) < 0)
+       if (write_pos(fd, 0, &buffer, headerSize) < 0)
                return errno;

        // Erase the last blocks


This actually should have been done to the whole file, if done at all. Now
it doesn't match the style of the rest of the file at all. This is worse
than before :p


Other related posts: