Rename compund to compound

Christian Ehrhardt Christian_Ehrhardt at genua.de
Tue May 3 12:09:34 CEST 2011


Hi,

in the past weeks I've been reading through the fiasco kernel code.
This is the start of a series of patches that clean up stuff or fix
bugs that I think I  found. Comments appreciated.

The first patch renames a method called compund to compound, more
important patches follow :-)

    regards    Christian


diff --git a/src/kernel/fiasco/src/abi/l4_msg_item.cpp b/src/kernel/fiasco/src/abi/l4_msg_item.cpp
index bbb92ef..1155a5f 100644
--- a/src/kernel/fiasco/src/abi/l4_msg_item.cpp
+++ b/src/kernel/fiasco/src/abi/l4_msg_item.cpp
@@ -16,7 +16,7 @@ public:
   };
 
   explicit L4_msg_item(Mword raw) : _raw(raw) {}
-  Mword compund() const { return _raw & 1; }
+  Mword compound() const { return _raw & 1; }
   Type type() const { return Type(_raw & 8); }
   bool is_void() const { return _raw == 0; }
   bool is_small_obj() const { return _raw & 2; }
diff --git a/src/kernel/fiasco/src/kern/thread-ipc.cpp b/src/kernel/fiasco/src/kern/thread-ipc.cpp
index f8e1995..3288b2a 100644
--- a/src/kernel/fiasco/src/kern/thread-ipc.cpp
+++ b/src/kernel/fiasco/src/kern/thread-ipc.cpp
@@ -948,7 +948,7 @@ Thread::transfer_msg_items(L4_msg_tag const &tag, Thread* snd, Utcb *snd_utcb,
 
       --items;
 
-      if (!item->b.compund())
+      if (!item->b.compound())
 	buf_iter->next();
     }
 




More information about the l4-hackers mailing list