summaryrefslogtreecommitdiff
path: root/udev/udev-event.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-01-06 00:26:28 +0100
committerKay Sievers <kay.sievers@vrfy.org>2009-01-06 00:26:28 +0100
commit3d7b2831cd661afd7d946791110b6ad5a7156d7f (patch)
tree60cb3d1c1216c8a9a42c3c479c1ce4dabd13d393 /udev/udev-event.c
parent34ac42b98d75c401520b9f69ff29b6832b6ab668 (diff)
libudev: device - add udev_device_get_property_value()
Diffstat (limited to 'udev/udev-event.c')
-rw-r--r--udev/udev-event.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/udev/udev-event.c b/udev/udev-event.c
index 93a65e7352..9e82f8de42 100644
--- a/udev/udev-event.c
+++ b/udev/udev-event.c
@@ -421,14 +421,9 @@ found:
dbg(event->udev, "missing attribute\n");
break;
} else {
- struct udev_list_entry *list_entry;
const char *value;
- list_entry = udev_device_get_properties_list_entry(event->dev);
- list_entry = udev_list_entry_get_by_name(list_entry, attr);
- if (list_entry == NULL)
- break;
- value = udev_list_entry_get_value(list_entry);
+ value = udev_device_get_property_value(event->dev, attr);
if (value == NULL)
break;
dbg(event->udev, "substitute env '%s=%s'\n", attr, value);