diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-21 16:42:46 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-21 16:42:51 -0500 |
commit | dd7e1d62981af11e216fd12817af277a94464803 (patch) | |
tree | 995d6b31ca2d9f55c838dcfc0ec313715f38979b /src/udev | |
parent | b382db9f3b1f1ffa33ed4970cf2e01d2ee4e8d88 (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.c | 2 |
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); |