diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2022-12-12 14:33:41 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2022-12-12 15:20:00 +0100 |
commit | df8b8968d4095f44acd6de03b4add65f9709b79d (patch) | |
tree | 249063ed382f2d9fc913729de73bac3d915afcab /src/test/modules/libpq_pipeline/libpq_pipeline.c | |
parent | 840ff5f451cd9a391d237fc60894fea7ad82a189 (diff) | |
download | postgresql-df8b8968d4095f44acd6de03b4add65f9709b79d.tar.gz postgresql-df8b8968d4095f44acd6de03b4add65f9709b79d.zip |
Order getopt arguments
Order the letters in the arguments of getopt() and getopt_long(), as
well as in the subsequent switch statements. In most cases, I used
alphabetical with lower case first. In a few cases, existing
different orders (e.g., upper case first) was kept to reduce the diff
size.
Discussion: https://www.postgresql.org/message-id/flat/3efd0fe8-351b-f836-9122-886002602357%40enterprisedb.com
Diffstat (limited to 'src/test/modules/libpq_pipeline/libpq_pipeline.c')
-rw-r--r-- | src/test/modules/libpq_pipeline/libpq_pipeline.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/modules/libpq_pipeline/libpq_pipeline.c b/src/test/modules/libpq_pipeline/libpq_pipeline.c index a37e4e25008..f5642ffaa2d 100644 --- a/src/test/modules/libpq_pipeline/libpq_pipeline.c +++ b/src/test/modules/libpq_pipeline/libpq_pipeline.c @@ -1705,13 +1705,10 @@ main(int argc, char **argv) PGresult *res; int c; - while ((c = getopt(argc, argv, "t:r:")) != -1) + while ((c = getopt(argc, argv, "r:t:")) != -1) { switch (c) { - case 't': /* trace file */ - tracefile = pg_strdup(optarg); - break; case 'r': /* numrows */ errno = 0; numrows = strtol(optarg, NULL, 10); @@ -1722,6 +1719,9 @@ main(int argc, char **argv) exit(1); } break; + case 't': /* trace file */ + tracefile = pg_strdup(optarg); + break; } } |