diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-08 17:59:00 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-08 17:59:00 +0200 |
commit | d59f11e1407ec6fa26e3a6f20b2d404af6978199 (patch) | |
tree | daf47b7982035323fd4323b260275e6fc9a5669a /udev/lib/test-libudev.c | |
parent | e5931bb7d86226a3823bdf5f4ec01c857827d386 (diff) |
move udev_ctrl to libudev-private
Diffstat (limited to 'udev/lib/test-libudev.c')
-rw-r--r-- | udev/lib/test-libudev.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/udev/lib/test-libudev.c b/udev/lib/test-libudev.c index d0095f15fc..835536af84 100644 --- a/udev/lib/test-libudev.c +++ b/udev/lib/test-libudev.c @@ -112,6 +112,10 @@ static int test_monitor(struct udev *udev, const char *socket_path) printf("no socket\n"); return -1; } + if (udev_monitor_enable_receiving(udev_monitor) < 0) { + printf("bind failed\n"); + return -1; + } fd = udev_monitor_get_fd(udev_monitor); FD_ZERO(&readfds); @@ -128,7 +132,7 @@ static int test_monitor(struct udev *udev, const char *socket_path) printf("select fd count: %i\n", fdcount); if (FD_ISSET(fd, &readfds)) { - device = udev_monitor_get_device(udev_monitor); + device = udev_monitor_receive_device(udev_monitor); if (device == NULL) { printf("no device from socket\n"); continue; |