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

Commit3350fb5

Browse files
committed
Clear some style deviations.
1 parente4db972 commit3350fb5

File tree

11 files changed

+12
-19
lines changed

11 files changed

+12
-19
lines changed

‎contrib/pgcrypto/pgp-mpi-internal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include"px.h"
3636

3737
staticmpz_t*
38-
mp_new()
38+
mp_new(void)
3939
{
4040
mpz_t*mp=mp_int_alloc();
4141

‎src/backend/postmaster/autovacuum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ HandleAutoVacLauncherInterrupts(void)
834834
* Perform a normal exit from the autovac launcher.
835835
*/
836836
staticvoid
837-
AutoVacLauncherShutdown()
837+
AutoVacLauncherShutdown(void)
838838
{
839839
ereport(DEBUG1,
840840
(errmsg("autovacuum launcher shutting down")));

‎src/backend/storage/buffer/freelist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ ClockSweepTick(void)
177177
* should not call this.
178178
*/
179179
bool
180-
have_free_buffer()
180+
have_free_buffer(void)
181181
{
182182
if (StrategyControl->firstFreeBuffer >=0)
183183
return true;

‎src/backend/storage/smgr/md.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ _mdfd_openseg(SMgrRelation reln, ForkNumber forknum, BlockNumber segno,
11141114
intoflags)
11151115
{
11161116
MdfdVec*v;
1117-
intfd;
1117+
Filefd;
11181118
char*fullpath;
11191119

11201120
fullpath=_mdfd_segpath(reln,forknum,segno);

‎src/backend/utils/misc/queryenvironment.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct QueryEnvironment
3636

3737

3838
QueryEnvironment*
39-
create_queryEnv()
39+
create_queryEnv(void)
4040
{
4141
return (QueryEnvironment*)palloc0(sizeof(QueryEnvironment));
4242
}

‎src/interfaces/libpq/fe-misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@ PQenv2encoding(void)
12501250
#ifdefENABLE_NLS
12511251

12521252
staticvoid
1253-
libpq_binddomain()
1253+
libpq_binddomain(void)
12541254
{
12551255
staticboolalready_bound= false;
12561256

‎src/pl/plpython/plpy_cursorobject.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ static PyObject *PLy_cursor_iternext(PyObject *self);
2727
staticPyObject*PLy_cursor_fetch(PyObject*self,PyObject*args);
2828
staticPyObject*PLy_cursor_close(PyObject*self,PyObject*unused);
2929

30-
staticcharPLy_cursor_doc[]= {
31-
"Wrapper around a PostgreSQL cursor"
32-
};
30+
staticcharPLy_cursor_doc[]="Wrapper around a PostgreSQL cursor";
3331

3432
staticPyMethodDefPLy_cursor_methods[]= {
3533
{"fetch",PLy_cursor_fetch,METH_VARARGS,NULL},

‎src/pl/plpython/plpy_planobject.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ static PyObject *PLy_plan_cursor(PyObject *self, PyObject *args);
1818
staticPyObject*PLy_plan_execute(PyObject*self,PyObject*args);
1919
staticPyObject*PLy_plan_status(PyObject*self,PyObject*args);
2020

21-
staticcharPLy_plan_doc[]= {
22-
"Store a PostgreSQL plan"
23-
};
21+
staticcharPLy_plan_doc[]="Store a PostgreSQL plan";
2422

2523
staticPyMethodDefPLy_plan_methods[]= {
2624
{"cursor",PLy_plan_cursor,METH_VARARGS,NULL},

‎src/pl/plpython/plpy_resultobject.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ static PyObject *PLy_result_str(PyObject *arg);
2222
staticPyObject*PLy_result_subscript(PyObject*arg,PyObject*item);
2323
staticintPLy_result_ass_subscript(PyObject*self,PyObject*item,PyObject*value);
2424

25-
staticcharPLy_result_doc[]= {
26-
"Results of a PostgreSQL query"
27-
};
25+
staticcharPLy_result_doc[]="Results of a PostgreSQL query";
2826

2927
staticPySequenceMethodsPLy_result_as_sequence= {
3028
.sq_length=PLy_result_length,

‎src/pl/plpython/plpy_subxactobject.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ static void PLy_subtransaction_dealloc(PyObject *subxact);
1919
staticPyObject*PLy_subtransaction_enter(PyObject*self,PyObject*unused);
2020
staticPyObject*PLy_subtransaction_exit(PyObject*self,PyObject*args);
2121

22-
staticcharPLy_subtransaction_doc[]= {
23-
"PostgreSQL subtransaction context manager"
24-
};
22+
staticcharPLy_subtransaction_doc[]=
23+
"PostgreSQL subtransaction context manager";
2524

2625
staticPyMethodDefPLy_subtransaction_methods[]= {
2726
{"__enter__",PLy_subtransaction_enter,METH_VARARGS,NULL},

‎src/port/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
long
22-
random()
22+
random(void)
2323
{
2424
returnpg_lrand48();
2525
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp