From ac733df61bbce99d321f4ccd49758107051d11b6 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 16 Sep 2006 13:31:40 +0000 Subject: [PATCH] Fix some more uses of str[n]casecmp that should be pg_str[n]casecmp. --- contrib/pgbench/pgbench.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c index 63c75878b4..702bee80ba 100644 --- a/contrib/pgbench/pgbench.c +++ b/contrib/pgbench/pgbench.c @@ -1,5 +1,5 @@ /* - * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.54 2006/09/13 00:39:19 ishii Exp $ + * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.55 2006/09/16 13:31:40 tgl Exp $ * * pgbench: a simple benchmark program for PostgreSQL * written by Tatsuo Ishii @@ -460,7 +460,7 @@ top: if (commands[st->state]->type == SQL_COMMAND) { res = PQgetResult(st->con); - if (strncasecmp(commands[st->state]->argv[0], "select", 6) != 0) + if (pg_strncasecmp(commands[st->state]->argv[0], "select", 6) != 0) { if (check(state, res, n, PGRES_COMMAND_OK)) return; @@ -560,7 +560,7 @@ top: fprintf(stderr, "\n"); } - if (strcasecmp(argv[0], "setrandom") == 0) + if (pg_strcasecmp(argv[0], "setrandom") == 0) { char *var; int min, @@ -623,7 +623,7 @@ top: st->listen = 1; } - else if (strcasecmp(argv[0], "set") == 0) + else if (pg_strcasecmp(argv[0], "set") == 0) { char *var; int ope1, @@ -925,7 +925,7 @@ process_commands(char *buf) tok = strtok(NULL, delim); } - if (strcasecmp(my_commands->argv[0], "setrandom") == 0) + if (pg_strcasecmp(my_commands->argv[0], "setrandom") == 0) { if (my_commands->argc < 4) { @@ -937,7 +937,7 @@ process_commands(char *buf) fprintf(stderr, "%s: extra argument \"%s\" ignored\n", my_commands->argv[0], my_commands->argv[j]); } - else if (strcasecmp(my_commands->argv[0], "set") == 0) + else if (pg_strcasecmp(my_commands->argv[0], "set") == 0) { if (my_commands->argc < 3) { -- 2.40.0