]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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 1c5b56f4a04f12540eeff9753bc4e98c28b6925c..47174232548e177a5eae661f458abd8d014b9319 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);
         }