Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc50faf9

Browse files
committed
Add variables names to static prototypes in initdb.c.
1 parent491dc12 commitc50faf9

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-
staticboolrmtree(char*,bool);
153-
staticvoidexit_nicely(void);
154152
#ifdefWIN32
155153
staticchar*expanded_path(char*);
156154
#else
157155
#defineexpanded_path(x) (x)
158156
#endif
159-
staticchar**readfile(char*);
160-
staticvoidwritefile(char*,char**);
157+
158+
staticvoid*xmalloc(size_tsize);
159+
staticchar*xstrdup(constchar*s);
160+
staticboolrmtree(char*path,boolrmtopdir);
161+
staticchar**replace_token(char**lines,char*token,char*replacement);
162+
staticchar**readfile(char*path);
163+
staticvoidwritefile(char*path,char**lines);
161164
staticvoidpclose_check(FILE*stream);
165+
staticintmkdir_p(char*path,mode_tomode);
166+
staticvoidexit_nicely(void);
162167
staticchar*get_id(void);
163-
staticchar*get_encoding_id(char*);
168+
staticchar*get_encoding_id(char*encoding_name);
164169
staticchar*get_short_version(void);
165-
staticintmkdir_p(char*,mode_t);
166-
staticintcheck_data_dir(void);
167-
staticboolmkdatadir(char*);
168-
staticboolchklocale(constchar*);
169-
staticvoidsetlocales(void);
170-
staticvoidset_input(char**,char*);
170+
staticintcheck_data_dir(void);
171+
staticboolmkdatadir(char*subdir);
172+
staticvoidset_input(char**dest,char*filename);
171173
staticvoidcheck_input(char*path);
172-
staticintfind_postgres(char*);
173-
staticintset_paths(void);
174-
staticchar**replace_token(char**,char*,char*);
175-
staticvoidset_short_version(char*,char*);
174+
staticintfind_postgres(char*path);
175+
staticintset_paths(void);
176+
staticvoidset_short_version(char*short_version,char*extrapath);
176177
staticvoidset_null_conf(void);
177-
staticvoidtest_buffers(void);
178178
staticvoidtest_connections(void);
179+
staticvoidtest_buffers(void);
179180
staticvoidsetup_config(void);
180-
staticvoidbootstrap_template1(char*);
181+
staticvoidbootstrap_template1(char*short_version);
181182
staticvoidsetup_shadow(void);
182183
staticvoidget_set_pwd(void);
183184
staticvoidunlimit_systables(void);
@@ -190,13 +191,14 @@ static void set_info_version(void);
190191
staticvoidsetup_schema(void);
191192
staticvoidvacuum_db(void);
192193
staticvoidmake_template0(void);
193-
staticvoidusage(constchar*);
194-
staticvoidtrapsig(int);
194+
staticvoidtrapsig(intsignum);
195195
staticvoidcheck_ok(void);
196-
staticchar*xstrdup(constchar*);
197-
staticvoid*xmalloc(size_t);
196+
staticboolchklocale(constchar*locale);
197+
staticvoidsetlocales(void);
198+
staticvoidusage(constchar*progname);
198199
staticvoidinit_nls(void);
199200

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp