X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=coccinelle%2Fhtonl.cocci;fp=coccinelle%2Fhtonl.cocci;h=4e69bb709028fd5ffd232a24e32b2dc8a037ea56;hb=9facc64034a98d593cf5b577e979aa78e3b184bf;hp=0000000000000000000000000000000000000000;hpb=daf3399a4b667bcdb45757608989a60eeec4a4fe;p=elogind.git 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)