From dd7e1d62981af11e216fd12817af277a94464803 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Tue, 21 Feb 2017 16:42:46 -0500 Subject: udev-builtin-blkid: use -errno not -1 as error code The code that calls this function doesn't care, but it looks bad. --- src/udev/udev-builtin-blkid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udev/udev-builtin-blkid.c b/src/udev/udev-builtin-blkid.c index 856376fc79..9037aa1304 100644 --- a/src/udev/udev-builtin-blkid.c +++ b/src/udev/udev-builtin-blkid.c @@ -193,7 +193,7 @@ static int probe_superblocks(blkid_probe pr) { int rc; if (fstat(blkid_probe_get_fd(pr), &st)) - return -1; + return -errno; blkid_probe_enable_partitions(pr, 1); -- cgit v1.2.3-54-g00ecf