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

Lines changed: 1 addition & 1 deletion
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

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
static void
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
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

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
#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

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

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

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

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
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},

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