remove bogus casts of arg to g_object_ref master
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 17 Jan 2018 14:25:03 +0000 (14:25 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 17 Jan 2018 14:25:03 +0000 (14:25 +0000)
commit9930f4047d0907985dc418b17fa77dba12b5e221
tree618d528b5b33035ec3a79f3d83d33bc6ac96ea41
parent8e32819b62fc507c324e727ee999322610059c6d
remove bogus casts of arg to g_object_ref

Latest version of glib uses typeof() magic to cast the
return value of g_object_ref to match its argument,
instead of returning a 'void *'. A few places in the
code were casting the arg to G_OBJECT() which was then
incompatible with the variable we assigned the result
to. The parameter casts were always redundant so just
remove them.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
libvirt-gconfig/libvirt-gconfig-object.c