no need to use get property when there are reasonable simple functions

SVN revision: 53729
This commit is contained in:
Mike Blumenkrantz 2010-10-21 18:50:09 +00:00
parent c2d941930c
commit ef1b10734e
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ eeze_udev_syspath_get_parent(const char *syspath)
if (!(device = _new_device(syspath)))
return NULL;
parent = udev_device_get_parent(device);
ret = eina_stringshare_add(udev_device_get_property_value(parent, "DEVPATH"));
ret = eina_stringshare_add(udev_device_get_syspath(parent));
udev_device_unref(device);
return ret;
}
@ -95,7 +95,7 @@ eeze_udev_syspath_get_devpath(const char *syspath)
if (!(device = _new_device(syspath)))
return NULL;
if (!(name = udev_device_get_property_value(device, "DEVNAME")))
if (!(name = udev_device_get_devnode(device)))
return NULL;
name = eina_stringshare_add(name);