diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-03 21:17:35 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-03 21:20:13 +0200 |
commit | 27f699ef0c8c2dce0f1dff19eef25f02e3da397e (patch) | |
tree | 52f95be1d05ba2a621d3bb8ac9129341f8d9973b /Kernel/Devices/DiskPartition.cpp | |
parent | c4c4bbc5ba5119e9ccc8ded948b26e7c4851a909 (diff) | |
download | serenity-27f699ef0c8c2dce0f1dff19eef25f02e3da397e.zip |
AK: Rename the common integer typedefs to make it obvious what they are.
These types can be picked up by including <AK/Types.h>:
* u8, u16, u32, u64 (unsigned)
* i8, i16, i32, i64 (signed)
Diffstat (limited to 'Kernel/Devices/DiskPartition.cpp')
-rw-r--r-- | Kernel/Devices/DiskPartition.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Devices/DiskPartition.cpp b/Kernel/Devices/DiskPartition.cpp index 7fc60c733d..ec0db9275e 100644 --- a/Kernel/Devices/DiskPartition.cpp +++ b/Kernel/Devices/DiskPartition.cpp @@ -22,7 +22,7 @@ unsigned DiskPartition::block_size() const return m_device->block_size(); } -bool DiskPartition::read_block(unsigned index, byte* out) const +bool DiskPartition::read_block(unsigned index, u8* out) const { #ifdef OFFD_DEBUG kprintf("DiskPartition::read_block %u (really: %u)\n", index, m_block_offset + index); @@ -31,7 +31,7 @@ bool DiskPartition::read_block(unsigned index, byte* out) const return m_device->read_block(m_block_offset + index, out); } -bool DiskPartition::write_block(unsigned index, const byte* data) +bool DiskPartition::write_block(unsigned index, const u8* data) { #ifdef OFFD_DEBUG kprintf("DiskPartition::write_block %u (really: %u)\n", index, m_block_offset + index); @@ -40,7 +40,7 @@ bool DiskPartition::write_block(unsigned index, const byte* data) return m_device->write_block(m_block_offset + index, data); } -bool DiskPartition::read_blocks(unsigned index, word count, byte* out) +bool DiskPartition::read_blocks(unsigned index, u16 count, u8* out) { #ifdef OFFD_DEBUG kprintf("DiskPartition::read_blocks %u (really: %u) count=%u\n", index, m_block_offset + index, count); @@ -49,7 +49,7 @@ bool DiskPartition::read_blocks(unsigned index, word count, byte* out) return m_device->read_blocks(m_block_offset + index, count, out); } -bool DiskPartition::write_blocks(unsigned index, word count, const byte* data) +bool DiskPartition::write_blocks(unsigned index, u16 count, const u8* data) { #ifdef OFFD_DEBUG kprintf("DiskPartition::write_blocks %u (really: %u) count=%u\n", index, m_block_offset + index, count); |