From dacea9ff6be55f1b115c13b1ab530812d0d66879 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 23 Apr 2009 03:24:38 +0200 Subject: libudev: monitor - switch to filter_add_match_subsystem_devtype() --- udev/lib/test-libudev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'udev/lib/test-libudev.c') diff --git a/udev/lib/test-libudev.c b/udev/lib/test-libudev.c index be25d61121..db08d4845f 100644 --- a/udev/lib/test-libudev.c +++ b/udev/lib/test-libudev.c @@ -228,9 +228,9 @@ static int test_monitor(struct udev *udev) printf("no socket\n"); return -1; } - if (udev_monitor_filter_add_match_subsystem(udev_monitor, "block") < 0 || - udev_monitor_filter_add_match_subsystem(udev_monitor, "tty") < 0 || - udev_monitor_filter_add_match_subsystem(udev_monitor, "usb") < 0) { + if (udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "block", NULL) < 0 || + udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "tty", NULL) < 0 || + udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "usb", "usb_device") < 0) { printf("filter failed\n"); return -1; } -- cgit v1.2.3-54-g00ecf