diff options
author | Simon McVittie <smcv@collabora.com> | 2022-09-12 13:17:09 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-10-07 14:15:43 +0100 |
commit | 606795f90868c2cb3fd83f506bf7dae090d56ff5 (patch) | |
tree | 1a2fc4fc9c769bd3c7aab757e8bf63f071897253 /dbus | |
parent | 831e8ac273d166f9b5347782f0a91f5c5e1aede0 (diff) | |
download | dbus-606795f90868c2cb3fd83f506bf7dae090d56ff5.tar.gz |
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>
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/dbus-marshal-recursive.c | 5 |
1 files changed, 1 insertions, 4 deletions
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); |