summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-device.h
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2012-07-27 13:15:54 +0200
committerJiří Klimeš <jklimes@redhat.com>2012-07-27 13:15:54 +0200
commitedb85e972051aff3cfcd5990ea1bd8a28dddc9d9 (patch)
tree922721c3a5491d87876bdf6f4e218bf2151af4d4 /libnm-glib/nm-device.h
parent915cfe8ce8eee78e9be387b5e87fcf31362ee82d (diff)
core: fix NM_IS_*_CLASS(klass) macros
The argument is 'klass' not 'obj'.
Diffstat (limited to 'libnm-glib/nm-device.h')
-rw-r--r--libnm-glib/nm-device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm-glib/nm-device.h b/libnm-glib/nm-device.h
index 9260a33c4..1726862fd 100644
--- a/libnm-glib/nm-device.h
+++ b/libnm-glib/nm-device.h
@@ -42,7 +42,7 @@ G_BEGIN_DECLS
#define NM_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_DEVICE, NMDevice))
#define NM_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_DEVICE, NMDeviceClass))
#define NM_IS_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_DEVICE))
-#define NM_IS_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NM_TYPE_DEVICE))
+#define NM_IS_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_DEVICE))
#define NM_DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_DEVICE, NMDeviceClass))
#define NM_DEVICE_DEVICE_TYPE "device-type"