diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-17 23:32:43 -0700 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-17 23:32:43 -0700 |
commit | a076080bd43d55f0d4eabc9bef2bf46c9791372f (patch) | |
tree | 3377c3a7aa4d640b7a003705a776a67f3a4f7798 /udev/udevadm-info.c | |
parent | 7bcbf7ecc81be6be2a0862c9d713fe41869ecba3 (diff) |
libudev: pass udev_device in enumerate
Diffstat (limited to 'udev/udevadm-info.c')
-rw-r--r-- | udev/udevadm-info.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/udev/udevadm-info.c b/udev/udevadm-info.c index 9ce83aabd8..abb424bfea 100644 --- a/udev/udevadm-info.c +++ b/udev/udevadm-info.c @@ -165,18 +165,10 @@ static void print_record(struct udev_device *device) printf("\n"); } -static int export_all_cb(struct udev *udev, - const char *syspath, const char *subsystem, const char *name, - void *data) +static int export_all_cb(struct udev_device *device, void *data) { - struct udev_device *device; - - device = udev_device_new_from_syspath(udev, syspath); - if (device == NULL) - return 0; if (udev_device_get_devname(device) != NULL) print_record(device); - udev_device_unref(device); return 0; } |