commit | dcf753aabec42c81a277ed101038ddcad9aec9c3 | [log] [tgz] |
---|---|---|
author | Tim Duesterhus <tim@bastelstu.be> | Thu Mar 04 17:31:47 2021 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Mar 05 08:28:53 2021 +0100 |
tree | 1150f4d97ad443c0ef8126c079c00df32d521273 | |
parent | f8b42925609e94c90af0af9dd496e6397363e2d4 [diff] |
CLEANUP: Use the ist() macro whenever possible Refactoring performed with the following Coccinelle patch: @@ char *s; @@ ( - ist2(s, strlen(s)) + ist(s) | - ist2(strdup(s), strlen(s)) + ist(strdup(s)) ) Note that this replacement is safe even in the strdup() case, because `ist()` will not call `strlen()` on a `NULL` pointer. Instead is inserts a length of `0`, effectively resulting in `IST_NULL`.