summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-20 12:54:15 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-20 13:20:34 +0100
commit88b9fcb9764bba777fe18bb28114a3743bb971a4 (patch)
treed3eb3caba906f2ec0beab721d4b69626a0b249ab /Userland
parent1dfc66c7cc055d03a87f5851334c5ae2f65d1e2d (diff)
downloadserenity-88b9fcb9764bba777fe18bb28114a3743bb971a4.zip
AK: Use size_t for ByteBuffer sizes
This matches what we already do for string types.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/dmesg.cpp2
-rw-r--r--Userland/rpcdump.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/dmesg.cpp b/Userland/dmesg.cpp
index f116e3a3c5..1557398fa2 100644
--- a/Userland/dmesg.cpp
+++ b/Userland/dmesg.cpp
@@ -53,7 +53,7 @@ int main(int argc, char** argv)
return 1;
}
const auto& b = f->read_all();
- for (auto i = 0; i < b.size(); ++i)
+ for (size_t i = 0; i < b.size(); ++i)
putchar(b[i]);
return 0;
}
diff --git a/Userland/rpcdump.cpp b/Userland/rpcdump.cpp
index 3a2b82bcb4..7975911e2a 100644
--- a/Userland/rpcdump.cpp
+++ b/Userland/rpcdump.cpp
@@ -81,7 +81,7 @@ int main(int argc, char** argv)
auto data = socket->read_all();
- for (int i = 0; i < data.size(); ++i)
+ for (size_t i = 0; i < data.size(); ++i)
putchar(data[i]);
printf("\n");