summaryrefslogtreecommitdiff
path: root/contrib/oid2name/oid2name.c
diff options
context:
space:
mode:
authorPeter Geoghegan2022-09-22 20:59:20 +0000
committerPeter Geoghegan2022-09-22 20:59:20 +0000
commit0faf7d933f625eb1668dcaa518b472f722b53a55 (patch)
tree5fce7103c75871bec2ec1636d8751245cb7374a0 /contrib/oid2name/oid2name.c
parent8fb4e001e9c185250a95b2b13880a2a04d626b75 (diff)
Harmonize parameter names in contrib code.
Make sure that function declarations use names that exactly match the corresponding names from function definitions in contrib code. Like other recent commits that cleaned up function parameter names, this commit was written with help from clang-tidy. Author: Peter Geoghegan <pg@bowt.ie> Discussion: https://postgr.es/m/CAH2-WznJt9CMM9KJTMjJh_zbL5hD9oX44qdJ4aqZtjFi-zA3Tg@mail.gmail.com
Diffstat (limited to 'contrib/oid2name/oid2name.c')
-rw-r--r--contrib/oid2name/oid2name.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/oid2name/oid2name.c b/contrib/oid2name/oid2name.c
index 32d5444831..4edf02d9c7 100644
--- a/contrib/oid2name/oid2name.c
+++ b/contrib/oid2name/oid2name.c
@@ -48,15 +48,15 @@ struct options
/* function prototypes */
static void help(const char *progname);
-void get_opts(int, char **, struct options *);
+void get_opts(int argc, char **argv, struct options *my_opts);
void add_one_elt(char *eltname, eary *eary);
char *get_comma_elts(eary *eary);
-PGconn *sql_conn(struct options *);
-int sql_exec(PGconn *, const char *sql, bool quiet);
-void sql_exec_dumpalldbs(PGconn *, struct options *);
-void sql_exec_dumpalltables(PGconn *, struct options *);
-void sql_exec_searchtables(PGconn *, struct options *);
-void sql_exec_dumpalltbspc(PGconn *, struct options *);
+PGconn *sql_conn(struct options *my_opts);
+int sql_exec(PGconn *conn, const char *todo, bool quiet);
+void sql_exec_dumpalldbs(PGconn *conn, struct options *opts);
+void sql_exec_dumpalltables(PGconn *conn, struct options *opts);
+void sql_exec_searchtables(PGconn *conn, struct options *opts);
+void sql_exec_dumpalltbspc(PGconn *conn, struct options *opts);
/* function to parse command line options and check for some usage errors. */
void