mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 00:00:08 +01:00
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:
parent
4efc6f030a
commit
80f6f4e115
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue