summaryrefslogtreecommitdiff
path: root/dbus
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-09-12 13:17:09 +0100
committerSimon McVittie <smcv@collabora.com>2022-10-07 14:15:43 +0100
commit606795f90868c2cb3fd83f506bf7dae090d56ff5 (patch)
tree1a2fc4fc9c769bd3c7aab757e8bf63f071897253 /dbus
parent831e8ac273d166f9b5347782f0a91f5c5e1aede0 (diff)
downloaddbus-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.c5
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);