diff options
author | Bruce Momjian <bruce@momjian.us> | 2012-11-30 14:49:55 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2012-11-30 14:49:55 -0500 |
commit | bd9c8e741b5724e31b2a3d8da9f0218f7b3b44e5 (patch) | |
tree | 5a322322aab3af9c3847155431e7bb0d9400e911 /contrib/pgbench/pgbench.c | |
parent | da63fec7dbb0c459aa0f8753a3d30a3a6cd3d73f (diff) | |
download | postgresql-bd9c8e741b5724e31b2a3d8da9f0218f7b3b44e5.tar.gz postgresql-bd9c8e741b5724e31b2a3d8da9f0218f7b3b44e5.zip |
Move long_options structures to the top of main() functions, for
consistency.
Per suggestion from Tom.
Diffstat (limited to 'contrib/pgbench/pgbench.c')
-rw-r--r-- | contrib/pgbench/pgbench.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c index 090c21019e6..e3764522280 100644 --- a/contrib/pgbench/pgbench.c +++ b/contrib/pgbench/pgbench.c @@ -1915,6 +1915,15 @@ printResults(int ttype, int normal_xacts, int nclients, int main(int argc, char **argv) { + static struct option long_options[] = { + {"foreign-keys", no_argument, &foreign_keys, 1}, + {"index-tablespace", required_argument, NULL, 3}, + {"tablespace", required_argument, NULL, 2}, + {"unlogged-tables", no_argument, &unlogged_tables, 1}, + {"sampling-rate", required_argument, NULL, 4}, + {NULL, 0, NULL, 0} + }; + int c; int nclients = 1; /* default number of simulated clients */ int nthreads = 1; /* default number of threads */ @@ -1937,15 +1946,6 @@ main(int argc, char **argv) int i; - static struct option long_options[] = { - {"foreign-keys", no_argument, &foreign_keys, 1}, - {"index-tablespace", required_argument, NULL, 3}, - {"tablespace", required_argument, NULL, 2}, - {"unlogged-tables", no_argument, &unlogged_tables, 1}, - {"sampling-rate", required_argument, NULL, 4}, - {NULL, 0, NULL, 0} - }; - #ifdef HAVE_GETRLIMIT struct rlimit rlim; #endif |