diff --git a/clients/common/nm-meta-setting-desc.c b/clients/common/nm-meta-setting-desc.c index 7a5fd49128..aa21ce1023 100644 --- a/clients/common/nm-meta-setting-desc.c +++ b/clients/common/nm-meta-setting-desc.c @@ -1854,7 +1854,7 @@ _set_fcn_vpn_service_type (ARGS_SET_FCN) gs_free char *service_name = NULL; service_name = nm_vpn_plugin_info_list_find_service_type (nm_vpn_get_plugin_infos (), value); - g_object_set (setting, property_info->property_name, service_name ? : value, NULL); + g_object_set (setting, property_info->property_name, service_name ?: value, NULL); return TRUE; } diff --git a/shared/nm-utils/nm-macros-internal.h b/shared/nm-utils/nm-macros-internal.h index 4879e33d04..d1391073eb 100644 --- a/shared/nm-utils/nm-macros-internal.h +++ b/shared/nm-utils/nm-macros-internal.h @@ -422,7 +422,7 @@ _nm_auto_freev (gpointer ptr) static inline const char * NM_G_ERROR_MSG (GError *error) { - return error ? (error->message ? : "(null)") : "(no-error)"; \ + return error ? (error->message ?: "(null)") : "(no-error)"; \ } /*****************************************************************************/ diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 4609eb3c16..d71005944b 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -10963,7 +10963,7 @@ reapply_cb (NMDevice *self, nm_device_sys_iface_state_set (self, NM_DEVICE_SYS_IFACE_STATE_MANAGED); if (!check_and_reapply_connection (self, - connection ? : (NMConnection *) nm_device_get_settings_connection (self), + connection ?: (NMConnection *) nm_device_get_settings_connection (self), version_id, &audit_args, &local)) { diff --git a/src/ndisc/nm-ndisc.c b/src/ndisc/nm-ndisc.c index 04f8631298..879eec67fe 100644 --- a/src/ndisc/nm-ndisc.c +++ b/src/ndisc/nm-ndisc.c @@ -1192,7 +1192,7 @@ set_property (GObject *object, guint prop_id, switch (prop_id) { case PROP_PLATFORM: /* construct-only */ - priv->platform = g_value_get_object (value) ? : NM_PLATFORM_GET; + priv->platform = g_value_get_object (value) ?: NM_PLATFORM_GET; if (!priv->platform) g_return_if_reached (); diff --git a/src/platform/nm-netlink.c b/src/platform/nm-netlink.c index 4cb19780b0..2064a4bba2 100644 --- a/src/platform/nm-netlink.c +++ b/src/platform/nm-netlink.c @@ -1399,7 +1399,7 @@ nl_recv (struct nl_sock *sk, struct sockaddr_nl *nla, if (page_size == 0) page_size = getpagesize() * 4; - iov.iov_len = sk->s_bufsize ? : page_size; + iov.iov_len = sk->s_bufsize ?: page_size; iov.iov_base = g_malloc (iov.iov_len); if ( creds