core: use NM_CAST_PPTR() for nm_dbus_object_clear_and_unexport()

This ensures that the argument is some pointer to pointer. This gives a
bit of additional compile time safety, but in general, it still casts
any pointer to pointer (because that's what we require, as most arguments
won't be of type NMDBusObject to begin with).
This commit is contained in:
Thomas Haller 2021-04-15 19:44:31 +02:00
parent 4efc6f030a
commit 80f6f4e115
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -168,7 +168,7 @@ void nm_dbus_object_unexport_on_idle(gpointer /* (NMDBusObject *) */ self_take);
void _nm_dbus_object_clear_and_unexport(NMDBusObject **location);
#define nm_dbus_object_clear_and_unexport(location) \
_nm_dbus_object_clear_and_unexport((NMDBusObject **) (location))
_nm_dbus_object_clear_and_unexport(NM_CAST_PPTR(NMDBusObject, (location)))
void nm_dbus_object_emit_signal_variant(NMDBusObject * self,
const NMDBusInterfaceInfoExtended *interface_info,