coccinelle says we should use EOPNOTSUPP rather than ENOTSUP

This commit is contained in:
Lennart Poettering
2018-05-31 12:06:54 +02:00
parent b3c66c4497
commit 2f0726c08f
+1 -1
View File
@@ -30,7 +30,7 @@ static int test_fiemap(const char *path) {
if (fd < 0)
return log_error_errno(errno, "failed to open %s: %m", path);
r = read_fiemap(fd, &fiemap);
if (r == -ENOTSUP) {
if (r == -EOPNOTSUPP) {
log_info("Skipping test, not supported");
exit(EXIT_TEST_SKIP);
}