mirror of
https://github.com/curl/curl.git
synced 2026-07-27 01:37:18 +03:00
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:
parent
2f3fa479dd
commit
97aed9c960
43 changed files with 142 additions and 143 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue