coccinelle says we should use EOPNOTSUPP rather than ENOTSUP
authorLennart Poettering <lennart@poettering.net>
Thu, 31 May 2018 10:06:54 +0000 (12:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 31 May 2018 10:06:54 +0000 (12:06 +0200)
src/test/test-sleep.c

index 1c5b56f..4717423 100644 (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);
         }