summaryrefslogtreecommitdiff
path: root/udev/udevadm-test.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-09-10 18:59:42 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-09-10 18:59:42 +0200
commit31c1f537450e96f8ddd6a0fad2adaefe57996f03 (patch)
tree816bab62c1215cd2886dd0d238ff30dbfd032ff0 /udev/udevadm-test.c
parentecc9ec579feb4b7cc86bcf7caed3cb841faf3c9e (diff)
get rid of udev_sysdeps.c
Diffstat (limited to 'udev/udevadm-test.c')
-rw-r--r--udev/udevadm-test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/udev/udevadm-test.c b/udev/udevadm-test.c
index 994a354960..b6fccf34e7 100644
--- a/udev/udevadm-test.c
+++ b/udev/udevadm-test.c
@@ -42,9 +42,9 @@ static int import_uevent_var(struct udev *udev, const char *devpath)
int rc = -1;
/* read uevent file */
- strlcpy(path, udev_get_sys_path(udev), sizeof(path));
- strlcat(path, devpath, sizeof(path));
- strlcat(path, "/uevent", sizeof(path));
+ util_strlcpy(path, udev_get_sys_path(udev), sizeof(path));
+ util_strlcat(path, devpath, sizeof(path));
+ util_strlcat(path, "/uevent", sizeof(path));
fd = open(path, O_RDONLY);
if (fd < 0)
goto out;
@@ -163,11 +163,11 @@ int udevadm_test(struct udev *udev, int argc, char *argv[])
}
if (subsystem != NULL)
- strlcpy(dev->subsystem, subsystem, sizeof(dev->subsystem));
+ util_strlcpy(dev->subsystem, subsystem, sizeof(dev->subsystem));
/* override built-in sysfs device */
udevice->dev = dev;
- strlcpy(udevice->action, action, sizeof(udevice->action));
+ util_strlcpy(udevice->action, action, sizeof(udevice->action));
udevice->devt = udev_device_get_devt(udevice);
/* simulate node creation with test flag */
@@ -191,7 +191,7 @@ int udevadm_test(struct udev *udev, int argc, char *argv[])
list_for_each_entry(name_loop, &udevice->run_list, node) {
char program[PATH_SIZE];
- strlcpy(program, name_loop->name, sizeof(program));
+ util_strlcpy(program, name_loop->name, sizeof(program));
udev_rules_apply_format(udevice, program, sizeof(program));
info(udev, "run: '%s'\n", program);
}