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 <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2022-09-12 13:17:09 +01:00
parent 831e8ac273
commit 606795f908

View 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);