mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Standardize treatment of strcmp() return value
Always compare the return value to 0, don't use cute tricks like if (!strcmp(...)).
This commit is contained in:
@ -1579,7 +1579,7 @@ process_commands(char *buf)
|
||||
{
|
||||
if (pg_strcasecmp(my_commands->argv[2], "us") != 0 &&
|
||||
pg_strcasecmp(my_commands->argv[2], "ms") != 0 &&
|
||||
pg_strcasecmp(my_commands->argv[2], "s"))
|
||||
pg_strcasecmp(my_commands->argv[2], "s") != 0)
|
||||
{
|
||||
fprintf(stderr, "%s: unknown time unit '%s' - must be us, ms or s\n",
|
||||
my_commands->argv[0], my_commands->argv[2]);
|
||||
|
Reference in New Issue
Block a user