summaryrefslogtreecommitdiff
path: root/udev/udevadm-test.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-09-10 21:50:21 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-09-10 21:50:21 +0200
commit17fcfb5972977b6a3aedca6ad2aa8d1fbfbc761d (patch)
tree829107a8a24b59948c67d0877990e39cbf1c32ce /udev/udevadm-test.c
parent31c1f537450e96f8ddd6a0fad2adaefe57996f03 (diff)
use size definitions from libudev
Diffstat (limited to 'udev/udevadm-test.c')
-rw-r--r--udev/udevadm-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udev/udevadm-test.c b/udev/udevadm-test.c
index b6fccf34e7..ba0852871a 100644
--- a/udev/udevadm-test.c
+++ b/udev/udevadm-test.c
@@ -33,7 +33,7 @@
static int import_uevent_var(struct udev *udev, const char *devpath)
{
- char path[PATH_SIZE];
+ char path[UTIL_PATH_SIZE];
static char value[4096]; /* must stay, used with putenv */
ssize_t size;
int fd;
@@ -189,7 +189,7 @@ int udevadm_test(struct udev *udev, int argc, char *argv[])
struct name_entry *name_loop;
list_for_each_entry(name_loop, &udevice->run_list, node) {
- char program[PATH_SIZE];
+ char program[UTIL_PATH_SIZE];
util_strlcpy(program, name_loop->name, sizeof(program));
udev_rules_apply_format(udevice, program, sizeof(program));