From da46611254427df42a4011910176d43d8966a340 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Thu, 24 Apr 2014 16:02:16 -0400 Subject: src/udev: code cleanup Signed-off-by: Anthony G. Basile --- src/udev/udev-builtin-blkid.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/udev/udev-builtin-blkid.c') diff --git a/src/udev/udev-builtin-blkid.c b/src/udev/udev-builtin-blkid.c index 23a24da907..24adb71b17 100644 --- a/src/udev/udev-builtin-blkid.c +++ b/src/udev/udev-builtin-blkid.c @@ -143,7 +143,6 @@ static int builtin_blkid(struct udev_device *dev, int argc, char *argv[], bool t const char *name; int nvals; int i; - size_t len; int err = 0; static const struct option options[] = { @@ -201,10 +200,10 @@ static int builtin_blkid(struct udev_device *dev, int argc, char *argv[], bool t nvals = blkid_probe_numof_values(pr); for (i = 0; i < nvals; i++) { - if (blkid_probe_get_value(pr, i, &name, &data, &len)) + if (blkid_probe_get_value(pr, i, &name, &data, NULL)) continue; - len = strnlen((char *) data, len); - print_property(dev, test, name, (char *) data); + + print_property(dev, test, name, data); } blkid_free_probe(pr); -- cgit v1.2.3-54-g00ecf