CLEANUP: Apply the coccinelle patch for `XXXcmp()` on contrib/
Compare the various `cmp()` functions against zero.
diff --git a/contrib/mod_defender/spoa.c b/contrib/mod_defender/spoa.c
index 2ae1a36..78c009e 100644
--- a/contrib/mod_defender/spoa.c
+++ b/contrib/mod_defender/spoa.c
@@ -1044,7 +1044,7 @@
return;
list_for_each_entry(eng, &client->worker->engines, list) {
- if (!strcmp(eng->id, client->engine_id))
+ if (strcmp(eng->id, client->engine_id) == 0)
goto end;
}
@@ -1749,11 +1749,11 @@
server_port = atoi(optarg);
break;
case 'c':
- if (!strcmp(optarg, "pipelining"))
+ if (strcmp(optarg, "pipelining") == 0)
pipelining = true;
- else if (!strcmp(optarg, "async"))
+ else if (strcmp(optarg, "async") == 0)
async = true;
- else if (!strcmp(optarg, "fragmentation"))
+ else if (strcmp(optarg, "fragmentation") == 0)
fragmentation = true;
else
fprintf(stderr, "WARNING: unsupported capability '%s'\n", optarg);