summary refs log tree commit diff
path: root/src/core/devices/nm-device-logging.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2023-02-10 11:50:34 +0100
committerMichael Biebl <biebl@debian.org>2023-02-10 11:50:34 +0100
commit1372848511cb896b80b51ed1a3e9606bd9816631 (patch)
tree674792b9385bdef935988894b45f06b2af39f88c /src/core/devices/nm-device-logging.h
parent40ec077ea305994c1fc2130add6787ca0c73e2c6 (diff)
New upstream version 1.42.0 upstream/1.42.0
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