Skip to content

Commit

Permalink
qlit: make qlit_equal_qobject() take const arguments
Browse files Browse the repository at this point in the history
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20170825105913.4060-8-marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
  • Loading branch information
elmarco authored and Markus Armbruster committed Sep 4, 2017
1 parent d9eba57 commit e2346a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/qapi/qmp/qlit.h
Expand Up @@ -44,6 +44,6 @@ struct QLitDictEntry {
#define QLIT_QLIST(val) \
{ .type = QTYPE_QLIST, .value.qlist = (val) }

bool qlit_equal_qobject(QLitObject *lhs, QObject *rhs);
bool qlit_equal_qobject(const QLitObject *lhs, const QObject *rhs);

#endif /* QLIT_H */
2 changes: 1 addition & 1 deletion qobject/qlit.c
Expand Up @@ -41,7 +41,7 @@ static void compare_helper(QObject *obj, void *opaque)
qlit_equal_qobject(&helper->objs[helper->index++], obj);
}

bool qlit_equal_qobject(QLitObject *lhs, QObject *rhs)
bool qlit_equal_qobject(const QLitObject *lhs, const QObject *rhs)
{
int64_t val;

Expand Down

0 comments on commit e2346a1

Please sign in to comment.