summaryrefslogtreecommitdiff
path: root/udev/udevadm-info.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-09-17 23:32:43 -0700
committerKay Sievers <kay.sievers@vrfy.org>2008-09-17 23:32:43 -0700
commita076080bd43d55f0d4eabc9bef2bf46c9791372f (patch)
tree3377c3a7aa4d640b7a003705a776a67f3a4f7798 /udev/udevadm-info.c
parent7bcbf7ecc81be6be2a0862c9d713fe41869ecba3 (diff)
libudev: pass udev_device in enumerate
Diffstat (limited to 'udev/udevadm-info.c')
-rw-r--r--udev/udevadm-info.c10
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;
}