aboutsummaryrefslogtreecommitdiff
path: root/chardev/testdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'chardev/testdev.c')
-rw-r--r--chardev/testdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chardev/testdev.c b/chardev/testdev.c
index bbae59c..a92caca 100644
--- a/chardev/testdev.c
+++ b/chardev/testdev.c
@@ -40,8 +40,8 @@ struct TestdevChardev {
typedef struct TestdevChardev TestdevChardev;
#define TYPE_CHARDEV_TESTDEV "chardev-testdev"
-#define TESTDEV_CHARDEV(obj) \
- OBJECT_CHECK(TestdevChardev, (obj), TYPE_CHARDEV_TESTDEV)
+DECLARE_INSTANCE_CHECKER(TestdevChardev, TESTDEV_CHARDEV,
+ TYPE_CHARDEV_TESTDEV)
/* Try to interpret a whole incoming packet */
static int testdev_eat_packet(TestdevChardev *testdev)