about summary refs log tree commit diff
path: root/src/core/devices/nm-device-logging.h
diff options
context:
space:
mode:
authorJeremy Bicha <jeremy.bicha@canonical.com>2023-02-14 10:06:06 -0500
committerJeremy Bicha <jeremy.bicha@canonical.com>2023-02-14 10:06:06 -0500
commitb3c2e57e153446d32d16f2d99e6abbb50146dddb (patch)
treee71a5353ff26c7e33cbe6e482874bedc1c3cc1cd /src/core/devices/nm-device-logging.h
parent1d817ebf5302c204e3ce9d3512db13bf834fee33 (diff)
parented857ba34efc2ec899f2e3fbd8e35324561a55b2 (diff)
Merge tag 'debian/1.42.0-1' into ubuntu/master
network-manager Debian release 1.42.0-1
Diffstat (limited to 'src/core/devices/nm-device-logging.h')
-rw-r--r--src/core/devices/nm-device-logging.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/core/devices/nm-device-logging.h b/src/core/devices/nm-device-logging.h
index c2602189..ffc90c2d 100644
--- a/src/core/devices/nm-device-logging.h
+++ b/src/core/devices/nm-device-logging.h
@@ -11,15 +11,12 @@
 #if !_NM_CC_SUPPORT_GENERIC
 #define _NM_DEVICE_CAST(self) ((NMDevice *) (self))
 #elif !defined(_NMLOG_DEVICE_TYPE)
-#define _NM_DEVICE_CAST(self) \
-    _Generic((self), NMDevice * : ((NMDevice *) (self)), NMDevice *const : ((NMDevice *) (self)))
+#define _NM_DEVICE_CAST(self) _Generic((self), NMDevice * : ((NMDevice *) (self)))
 #else
-#define _NM_DEVICE_CAST(self) \
-    _Generic((self), \
-                 _NMLOG_DEVICE_TYPE *      : ((NMDevice *) (self)), \
-                 _NMLOG_DEVICE_TYPE * const: ((NMDevice *) (self)), \
-                 NMDevice *                : ((NMDevice *) (self)), \
-                 NMDevice *           const: ((NMDevice *) (self)))
+#define _NM_DEVICE_CAST(self)                    \
+    _Generic((self), _NMLOG_DEVICE_TYPE *        \
+             : ((NMDevice *) (self)), NMDevice * \
+             : ((NMDevice *) (self)))
 #endif
 
 #undef _NMLOG_ENABLED