1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-31 14:50:15 +03:00

udev-builtin-blkid: use -errno not -1 as error code

The code that calls this function doesn't care, but it looks bad.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-02-21 16:42:46 -05:00
parent b382db9f3b
commit dd7e1d6298

View File

@ -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);