Skip to content

Commit 3350fb5

Browse files
committed
Clear some style deviations.
1 parent e4db972 commit 3350fb5

File tree

11 files changed

+12
-19
lines changed

11 files changed

+12
-19
lines changed

contrib/pgcrypto/pgp-mpi-internal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include "px.h"
3636

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

src/backend/postmaster/autovacuum.c

+1-1
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
static void
837-
AutoVacLauncherShutdown()
837+
AutoVacLauncherShutdown(void)
838838
{
839839
ereport(DEBUG1,
840840
(errmsg("autovacuum launcher shutting down")));

src/backend/storage/buffer/freelist.c

+1-1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ _mdfd_openseg(SMgrRelation reln, ForkNumber forknum, BlockNumber segno,
11141114
int oflags)
11151115
{
11161116
MdfdVec *v;
1117-
int fd;
1117+
File fd;
11181118
char *fullpath;
11191119

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

src/backend/utils/misc/queryenvironment.c

+1-1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@ PQenv2encoding(void)
12501250
#ifdef ENABLE_NLS
12511251

12521252
static void
1253-
libpq_binddomain()
1253+
libpq_binddomain(void)
12541254
{
12551255
static bool already_bound = false;
12561256

src/pl/plpython/plpy_cursorobject.c

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

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

3432
static PyMethodDef PLy_cursor_methods[] = {
3533
{"fetch", PLy_cursor_fetch, METH_VARARGS, NULL},

src/pl/plpython/plpy_planobject.c

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

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

2523
static PyMethodDef PLy_plan_methods[] = {
2624
{"cursor", PLy_plan_cursor, METH_VARARGS, NULL},

src/pl/plpython/plpy_resultobject.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ static PyObject *PLy_result_str(PyObject *arg);
2222
static PyObject *PLy_result_subscript(PyObject *arg, PyObject *item);
2323
static int PLy_result_ass_subscript(PyObject *self, PyObject *item, PyObject *value);
2424

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

2927
static PySequenceMethods PLy_result_as_sequence = {
3028
.sq_length = PLy_result_length,

src/pl/plpython/plpy_subxactobject.c

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

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

2625
static PyMethodDef PLy_subtransaction_methods[] = {
2726
{"__enter__", PLy_subtransaction_enter, METH_VARARGS, NULL},

src/port/random.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

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

0 commit comments

Comments
 (0)