diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-04-23 03:24:38 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-04-23 03:24:38 +0200 |
commit | dacea9ff6be55f1b115c13b1ab530812d0d66879 (patch) | |
tree | b7a2faed0421049e6a343da7326f612aab5b4efc /udev/lib/test-libudev.c | |
parent | c7dff03e057a7548bc2f2adbd5d2798d209b56e6 (diff) |
libudev: monitor - switch to filter_add_match_subsystem_devtype()
Diffstat (limited to 'udev/lib/test-libudev.c')
-rw-r--r-- | udev/lib/test-libudev.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |