From: Lennart Poettering Date: Thu, 31 May 2018 10:06:54 +0000 (+0200) Subject: coccinelle says we should use EOPNOTSUPP rather than ENOTSUP X-Git-Tag: v239~173^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f0726c08f4726c5468d41bee79a660727dcfc99;p=thirdparty%2Fsystemd.git coccinelle says we should use EOPNOTSUPP rather than ENOTSUP --- diff --git a/src/test/test-sleep.c b/src/test/test-sleep.c index 1c5b56f4a04..47174232548 100644 --- a/src/test/test-sleep.c +++ b/src/test/test-sleep.c @@ -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); }