replace missing get_attr_value() -> get_sysattr_value()

This commit is contained in:
Kay Sievers 2008-10-21 12:42:13 +02:00
parent e02d738ee4
commit 94db05d288

View File

@ -596,7 +596,7 @@ static int match_rule(struct udev_event *event, struct udev_rule *rule)
if (value[0]=='\0') { if (value[0]=='\0') {
const char *val; const char *val;
val = udev_device_get_attr_value(dev, key_name); val = udev_device_get_sysattr_value(dev, key_name);
if (val != NULL) if (val != NULL)
util_strlcpy(value, val, sizeof(value)); util_strlcpy(value, val, sizeof(value));
} }
@ -648,9 +648,9 @@ static int match_rule(struct udev_event *event, struct udev_rule *rule)
char value[UTIL_NAME_SIZE]; char value[UTIL_NAME_SIZE];
size_t len; size_t len;
val = udev_device_get_attr_value(event->dev_parent, key_name); val = udev_device_get_sysattr_value(event->dev_parent, key_name);
if (val == NULL) if (val == NULL)
val = udev_device_get_attr_value(dev, key_name); val = udev_device_get_sysattr_value(dev, key_name);
if (val == NULL) if (val == NULL)
goto try_parent; goto try_parent;
util_strlcpy(value, val, sizeof(value)); util_strlcpy(value, val, sizeof(value));