summaryrefslogtreecommitdiff
path: root/udev/lib/libudev-util.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-15 18:34:14 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-10-15 18:34:14 +0200
commit5c5cad796682d7f481d59ca495a1efa07fa013c7 (patch)
tree5af82e9b1171294f04285d0c654ae049d68c9000 /udev/lib/libudev-util.c
parentbd85566c16bd9ba32a44a1b2902127f459f4a63c (diff)
libudev: device - lookup "subsystem" and "driver" only once
Diffstat (limited to 'udev/lib/libudev-util.c')
-rw-r--r--udev/lib/libudev-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udev/lib/libudev-util.c b/udev/lib/libudev-util.c
index 55bac9a476..0ff121d774 100644
--- a/udev/lib/libudev-util.c
+++ b/udev/lib/libudev-util.c
@@ -31,7 +31,7 @@
#include "libudev.h"
#include "libudev-private.h"
-static ssize_t get_sys_link(struct udev *udev, const char *slink, const char *syspath, char *subsystem, size_t size)
+static ssize_t get_sys_link(struct udev *udev, const char *slink, const char *syspath, char *value, size_t size)
{
char path[UTIL_PATH_SIZE];
ssize_t len;
@@ -49,7 +49,7 @@ static ssize_t get_sys_link(struct udev *udev, const char *slink, const char *sy
return -1;
pos = &pos[1];
info(udev, "resolved link to: '%s'\n", pos);
- return util_strlcpy(subsystem, pos, size);
+ return util_strlcpy(value, pos, size);
}
ssize_t util_get_sys_subsystem(struct udev *udev, const char *syspath, char *subsystem, size_t size)