]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
dbus-marshal-recursive: Correct an incorrect comment
authorSimon McVittie <smcv@collabora.com>
Mon, 12 Sep 2022 12:17:09 +0000 (13:17 +0100)
committerSimon McVittie <smcv@collabora.com>
Fri, 7 Oct 2022 13:15:43 +0000 (14:15 +0100)
array_reader_check_finished() no longer returns a type, only a boolean,
so this comment isn't accurate any more.

Signed-off-by: Simon McVittie <smcv@collabora.com>
dbus/dbus-marshal-recursive.c

index 6ad49ace123fd00ef1ffaa0cd3636e694cf811a6..6aa513cfccca4df302fc2c5733977726e3365946 100644 (file)
@@ -304,15 +304,12 @@ variant_reader_recurse (DBusTypeReader *sub,
 #endif
 }
 
+/* return true if no more elements remain */
 static dbus_bool_t
 array_reader_check_finished (const DBusTypeReader *reader)
 {
   int end_pos;
 
-  /* return the array element type if elements remain, and
-   * TYPE_INVALID otherwise
-   */
-
   end_pos = reader->u.array.start_pos + array_reader_get_array_len (reader);
 
   _dbus_assert (reader->value_pos <= end_pos);