summaryrefslogtreecommitdiffstats
path: root/coccinelle/enotsup.cocci
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-01-05 13:41:33 +0100
committerLennart Poettering <lennart@poettering.net>2018-01-11 15:12:16 +0100
commit6b44a121c15584f340f73cf9ef8aa144ddcc22b2 (patch)
tree8cff98ed54474c14ff27ae2fddfd6dd37add42b4 /coccinelle/enotsup.cocci
parentethtool-util: don't pass fds as pointers if we don't have to (diff)
downloadsystemd-6b44a121c15584f340f73cf9ef8aa144ddcc22b2.tar.xz
systemd-6b44a121c15584f340f73cf9ef8aa144ddcc22b2.zip
cocci: there's not ENOTSUP, there's only EOPNOTSUPP
On Linux the former is a compat alias to the latter, and that's really weird, as inside the kernel the two are distinct. Which means we really should stay away from it.
Diffstat (limited to 'coccinelle/enotsup.cocci')
-rw-r--r--coccinelle/enotsup.cocci4
1 files changed, 4 insertions, 0 deletions
diff --git a/coccinelle/enotsup.cocci b/coccinelle/enotsup.cocci
new file mode 100644
index 0000000000..c65734d382
--- /dev/null
+++ b/coccinelle/enotsup.cocci
@@ -0,0 +1,4 @@
+@@
+@@
+- ENOTSUP
++ EOPNOTSUPP