summaryrefslogtreecommitdiff
path: root/coccinelle
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-06-12 16:47:37 +0200
committerSven Eden <yamakuzure@gmx.net>2017-06-16 10:13:01 +0200
commit33863e9c1572a093818e4559e69ca02452b60d5c (patch)
tree2c486ca13ba0e237ba91b5e7ab81564ace1c22d8 /coccinelle
parent3835ce8528f80dc21606c6c01b90423ba317289b (diff)
Prep v231: Cleaned up tree
Diffstat (limited to 'coccinelle')
-rw-r--r--coccinelle/htonl.cocci20
-rw-r--r--coccinelle/strjoina.cocci6
-rw-r--r--coccinelle/xsprintf.cocci6
3 files changed, 0 insertions, 32 deletions
diff --git a/coccinelle/htonl.cocci b/coccinelle/htonl.cocci
deleted file mode 100644
index 4e69bb709..000000000
--- a/coccinelle/htonl.cocci
+++ /dev/null
@@ -1,20 +0,0 @@
-@@
-expression s;
-@@
-- htonl(s)
-+ htobe32(s)
-@@
-expression s;
-@@
-- htons(s)
-+ htobe16(s)
-@@
-expression s;
-@@
-- ntohl(s)
-+ be32toh(s)
-@@
-expression s;
-@@
-- ntohs(s)
-+ be16toh(s)
diff --git a/coccinelle/strjoina.cocci b/coccinelle/strjoina.cocci
deleted file mode 100644
index a6236eb0f..000000000
--- a/coccinelle/strjoina.cocci
+++ /dev/null
@@ -1,6 +0,0 @@
-@@
-expression n, m;
-expression list s;
-@@
-- n = strjoina(m, s, NULL);
-+ n = strjoina(m, s);
diff --git a/coccinelle/xsprintf.cocci b/coccinelle/xsprintf.cocci
deleted file mode 100644
index 401216ad7..000000000
--- a/coccinelle/xsprintf.cocci
+++ /dev/null
@@ -1,6 +0,0 @@
-@@
-expression e, fmt;
-expression list vaargs;
-@@
-- snprintf(e, sizeof(e), fmt, vaargs);
-+ xsprintf(e, fmt, vaargs);