Skip to content

Commit c50faf9

Browse files
committed
Add variables names to static prototypes in initdb.c.
1 parent 491dc12 commit c50faf9

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

src/bin/initdb/initdb.c

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* Portions Copyright (c) 1994, Regents of the University of California
4444
* Portions taken from FreeBSD.
4545
*
46-
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.25 2004/05/05 21:18:29 tgl Exp $
46+
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.26 2004/05/10 20:51:58 momjian Exp $
4747
*
4848
*-------------------------------------------------------------------------
4949
*/
@@ -149,35 +149,36 @@ static const char *backend_options = "-F -O -c search_path=pg_catalog -c exit_on
149149
char *pgpath;
150150

151151
/* forward declare all our functions */
152-
static bool rmtree(char *, bool);
153-
static void exit_nicely(void);
154152
#ifdef WIN32
155153
static char *expanded_path(char *);
156154
#else
157155
#define expanded_path(x) (x)
158156
#endif
159-
static char **readfile(char *);
160-
static void writefile(char *, char **);
157+
158+
static void *xmalloc(size_t size);
159+
static char *xstrdup(const char *s);
160+
static bool rmtree(char *path, bool rmtopdir);
161+
static char **replace_token(char **lines, char *token, char *replacement);
162+
static char **readfile(char *path);
163+
static void writefile(char *path, char **lines);
161164
static void pclose_check(FILE *stream);
165+
static int mkdir_p(char *path, mode_t omode);
166+
static void exit_nicely(void);
162167
static char *get_id(void);
163-
static char *get_encoding_id(char *);
168+
static char *get_encoding_id(char *encoding_name);
164169
static char *get_short_version(void);
165-
static int mkdir_p(char *, mode_t);
166-
static int check_data_dir(void);
167-
static bool mkdatadir(char *);
168-
static bool chklocale(const char *);
169-
static void setlocales(void);
170-
static void set_input(char **, char *);
170+
static int check_data_dir(void);
171+
static bool mkdatadir(char *subdir);
172+
static void set_input(char **dest, char *filename);
171173
static void check_input(char *path);
172-
static int find_postgres(char *);
173-
static int set_paths(void);
174-
static char **replace_token(char **, char *, char *);
175-
static void set_short_version(char *, char *);
174+
static int find_postgres(char *path);
175+
static int set_paths(void);
176+
static void set_short_version(char *short_version, char *extrapath);
176177
static void set_null_conf(void);
177-
static void test_buffers(void);
178178
static void test_connections(void);
179+
static void test_buffers(void);
179180
static void setup_config(void);
180-
static void bootstrap_template1(char *);
181+
static void bootstrap_template1(char *short_version);
181182
static void setup_shadow(void);
182183
static void get_set_pwd(void);
183184
static void unlimit_systables(void);
@@ -190,13 +191,14 @@ static void set_info_version(void);
190191
static void setup_schema(void);
191192
static void vacuum_db(void);
192193
static void make_template0(void);
193-
static void usage(const char *);
194-
static void trapsig(int);
194+
static void trapsig(int signum);
195195
static void check_ok(void);
196-
static char *xstrdup(const char *);
197-
static void *xmalloc(size_t);
196+
static bool chklocale(const char *locale);
197+
static void setlocales(void);
198+
static void usage(const char *progname);
198199
static void init_nls(void);
199200

201+
200202
/*
201203
* macros for running pipes to postgres
202204
*/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy