diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-06-15 01:26:01 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-06-16 10:13:01 +0200 |
commit | 9facc64034a98d593cf5b577e979aa78e3b184bf (patch) | |
tree | 76687527726376aecddd8b75fd656746788e4155 /coccinelle | |
parent | daf3399a4b667bcdb45757608989a60eeec4a4fe (diff) |
tree-wide: htonl() is weird, let's use htobe32() instead (#3538)
Super-important change, yeah!
Diffstat (limited to 'coccinelle')
-rw-r--r-- | coccinelle/htonl.cocci | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/coccinelle/htonl.cocci b/coccinelle/htonl.cocci new file mode 100644 index 000000000..4e69bb709 --- /dev/null +++ b/coccinelle/htonl.cocci @@ -0,0 +1,20 @@ +@@ +expression s; +@@ +- htonl(s) ++ htobe32(s) +@@ +expression s; +@@ +- htons(s) ++ htobe16(s) +@@ +expression s; +@@ +- ntohl(s) ++ be32toh(s) +@@ +expression s; +@@ +- ntohs(s) ++ be16toh(s) |