aboutsummaryrefslogtreecommitdiff
path: root/lib/tst/linked_list_allocator.cc
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2023-02-12 17:28:33 +0200
committeraqua <aqua@iserlohn-fortress.net>2023-02-12 17:28:33 +0200
commit878cdffb3f69c780cb55f1fbb54747d9066a385a (patch)
treecd8bb7352bdb6d14ed20f5aa2d3d0e649f0f0427 /lib/tst/linked_list_allocator.cc
parentMake shadowing variables an error (diff)
downloadkernel-878cdffb3f69c780cb55f1fbb54747d9066a385a.tar.xz
Generate dependency files for source code
Use the compiler to generate dependency files for all C, C++ and .S assembly source code files. These are included in the makefiles where the files are used.
Diffstat (limited to 'lib/tst/linked_list_allocator.cc')
-rw-r--r--lib/tst/linked_list_allocator.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tst/linked_list_allocator.cc b/lib/tst/linked_list_allocator.cc
index f3af8e2..280a6d5 100644
--- a/lib/tst/linked_list_allocator.cc
+++ b/lib/tst/linked_list_allocator.cc
@@ -6,9 +6,9 @@ namespace libk {
#include "../stdlib/linked_list_allocator.c"
std::ostream &
-operator<<(std::ostream &os, const Chunk &begin)
+operator<<(std::ostream &os, const Chunk &b)
{
- for (const Chunk *iter = &begin; iter != nullptr; iter = iter->next) {
+ for (const Chunk *iter = &b; iter != nullptr; iter = iter->next) {
os << iter << " used=" << iter->used << " size=" << std::setw(4) << iter->size << " next=" << iter->next
<< std::endl;
}