summaryrefslogtreecommitdiff
path: root/udev/udev-rules.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-rules.c
parent34ac42b98d75c401520b9f69ff29b6832b6ab668 (diff)
libudev: device - add udev_device_get_property_value()
Diffstat (limited to 'udev/udev-rules.c')
-rw-r--r--udev/udev-rules.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/udev/udev-rules.c b/udev/udev-rules.c
index 9861a88a52..7ba52208fb 100644
--- a/udev/udev-rules.c
+++ b/udev/udev-rules.c
@@ -2059,13 +2059,10 @@ int udev_rules_apply_to_event(struct udev_rules *rules, struct udev_event *event
break;
case TK_M_ENV:
{
- struct udev_list_entry *list_entry;
const char *key_name = &rules->buf[cur->key.attr_off];
const char *value;
- list_entry = udev_device_get_properties_list_entry(event->dev);
- list_entry = udev_list_entry_get_by_name(list_entry, key_name);
- value = udev_list_entry_get_value(list_entry);
+ value = udev_device_get_property_value(event->dev, key_name);
if (value == NULL) {
dbg(event->udev, "ENV{%s} is not set, treat as empty\n", key_name);
value = "";