tidy-up: drop stray comparisons with literal zero

Drop from:
- strcmp, strcmpi, strncmp, memcmp, lstat, getrlimit, setrlimit, fseek,
  fstat
- autotools detection snippets.
- smooth-gtk-thread: simplify `!var != 0` expression.

Closes #21947
This commit is contained in:
Viktor Szakats 2026-06-10 13:03:41 +02:00
parent 2f3fa479dd
commit 97aed9c960
No known key found for this signature in database
43 changed files with 142 additions and 143 deletions

View file

@ -56,11 +56,11 @@ static void t1663_parse(const char *input_data,
fail_unless(!!exp_host == !!host, "host expectation failed");
if(!unitfail) {
fail_unless(!dev || !exp_dev || strcmp(dev, exp_dev) == 0,
fail_unless(!dev || !exp_dev || !strcmp(dev, exp_dev),
"dev should be equal to exp_dev");
fail_unless(!iface || !exp_iface || strcmp(iface, exp_iface) == 0,
fail_unless(!iface || !exp_iface || !strcmp(iface, exp_iface),
"iface should be equal to exp_iface");
fail_unless(!host || !exp_host || strcmp(host, exp_host) == 0,
fail_unless(!host || !exp_host || !strcmp(host, exp_host),
"host should be equal to exp_host");
}