summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-21 16:42:46 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-21 16:42:51 -0500
commitdd7e1d62981af11e216fd12817af277a94464803 (patch)
tree995d6b31ca2d9f55c838dcfc0ec313715f38979b /src/udev
parentb382db9f3b1f1ffa33ed4970cf2e01d2ee4e8d88 (diff)
udev-builtin-blkid: use -errno not -1 as error code
The code that calls this function doesn't care, but it looks bad.
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udev-builtin-blkid.c2
1 files changed, 1 insertions, 1 deletions
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);