From 606795f90868c2cb3fd83f506bf7dae090d56ff5 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 12 Sep 2022 13:17:09 +0100 Subject: dbus-marshal-recursive: Correct an incorrect comment 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 --- dbus/dbus-marshal-recursive.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'dbus') diff --git a/dbus/dbus-marshal-recursive.c b/dbus/dbus-marshal-recursive.c index 6ad49ace..6aa513cf 100644 --- a/dbus/dbus-marshal-recursive.c +++ b/dbus/dbus-marshal-recursive.c @@ -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); -- cgit v1.2.1