summaryrefslogtreecommitdiff
path: root/extras/edd_id
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-09-10 18:24:39 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-09-10 18:24:39 +0200
commit75250977137c26f706fc1514aca7982107859b1c (patch)
treeffda94d4c88b4ce6a39003384df7af00933fb21c /extras/edd_id
parent3eb46ec6ddeb31d9886ebb736d1d7b3534d2f354 (diff)
extras: use libudev code
Diffstat (limited to 'extras/edd_id')
-rw-r--r--extras/edd_id/Makefile.am5
-rw-r--r--extras/edd_id/edd_id.c2
2 files changed, 2 insertions, 5 deletions
diff --git a/extras/edd_id/Makefile.am b/extras/edd_id/Makefile.am
index e494c1e672..3bdbbd85b2 100644
--- a/extras/edd_id/Makefile.am
+++ b/extras/edd_id/Makefile.am
@@ -15,10 +15,7 @@ edd_id_SOURCES = \
edd_id.c \
../../udev/lib/libudev.h \
../../udev/lib/libudev.c \
- ../../udev/lib/libudev-util.c \
- ../../udev/udev_sysdeps.c \
- ../../udev/udev_utils.c \
- ../../udev/udev_utils_string.c
+ ../../udev/lib/libudev-util.c
if USE_SELINUX
edd_id_LDADD = \
diff --git a/extras/edd_id/edd_id.c b/extras/edd_id/edd_id.c
index b53700e756..4ba60393a0 100644
--- a/extras/edd_id/edd_id.c
+++ b/extras/edd_id/edd_id.c
@@ -156,7 +156,7 @@ int main(int argc, char *argv[])
if (disk_id == sysfs_id) {
if (match[0] == '\0') {
/* store id */
- strlcpy(match, dent->d_name, sizeof(match));
+ util_strlcpy(match, dent->d_name, sizeof(match));
} else {
/* error, same signature for another device */
info(udev, "'%s' does not have a unique signature\n", node);