Clear some style deviations.

This commit is contained in:
Noah Misch 2020-05-21 08:31:16 -07:00
parent e4db972ed5
commit 3350fb5d1f
11 changed files with 12 additions and 19 deletions

View File

@ -35,7 +35,7 @@
#include "px.h"
static mpz_t *
mp_new()
mp_new(void)
{
mpz_t *mp = mp_int_alloc();

View File

@ -834,7 +834,7 @@ HandleAutoVacLauncherInterrupts(void)
* Perform a normal exit from the autovac launcher.
*/
static void
AutoVacLauncherShutdown()
AutoVacLauncherShutdown(void)
{
ereport(DEBUG1,
(errmsg("autovacuum launcher shutting down")));

View File

@ -177,7 +177,7 @@ ClockSweepTick(void)
* should not call this.
*/
bool
have_free_buffer()
have_free_buffer(void)
{
if (StrategyControl->firstFreeBuffer >= 0)
return true;

View File

@ -1114,7 +1114,7 @@ _mdfd_openseg(SMgrRelation reln, ForkNumber forknum, BlockNumber segno,
int oflags)
{
MdfdVec *v;
int fd;
File fd;
char *fullpath;
fullpath = _mdfd_segpath(reln, forknum, segno);

View File

@ -36,7 +36,7 @@ struct QueryEnvironment
QueryEnvironment *
create_queryEnv()
create_queryEnv(void)
{
return (QueryEnvironment *) palloc0(sizeof(QueryEnvironment));
}

View File

@ -1250,7 +1250,7 @@ PQenv2encoding(void)
#ifdef ENABLE_NLS
static void
libpq_binddomain()
libpq_binddomain(void)
{
static bool already_bound = false;

View File

@ -27,9 +27,7 @@ static PyObject *PLy_cursor_iternext(PyObject *self);
static PyObject *PLy_cursor_fetch(PyObject *self, PyObject *args);
static PyObject *PLy_cursor_close(PyObject *self, PyObject *unused);
static char PLy_cursor_doc[] = {
"Wrapper around a PostgreSQL cursor"
};
static char PLy_cursor_doc[] = "Wrapper around a PostgreSQL cursor";
static PyMethodDef PLy_cursor_methods[] = {
{"fetch", PLy_cursor_fetch, METH_VARARGS, NULL},

View File

@ -18,9 +18,7 @@ static PyObject *PLy_plan_cursor(PyObject *self, PyObject *args);
static PyObject *PLy_plan_execute(PyObject *self, PyObject *args);
static PyObject *PLy_plan_status(PyObject *self, PyObject *args);
static char PLy_plan_doc[] = {
"Store a PostgreSQL plan"
};
static char PLy_plan_doc[] = "Store a PostgreSQL plan";
static PyMethodDef PLy_plan_methods[] = {
{"cursor", PLy_plan_cursor, METH_VARARGS, NULL},

View File

@ -22,9 +22,7 @@ static PyObject *PLy_result_str(PyObject *arg);
static PyObject *PLy_result_subscript(PyObject *arg, PyObject *item);
static int PLy_result_ass_subscript(PyObject *self, PyObject *item, PyObject *value);
static char PLy_result_doc[] = {
"Results of a PostgreSQL query"
};
static char PLy_result_doc[] = "Results of a PostgreSQL query";
static PySequenceMethods PLy_result_as_sequence = {
.sq_length = PLy_result_length,

View File

@ -19,9 +19,8 @@ static void PLy_subtransaction_dealloc(PyObject *subxact);
static PyObject *PLy_subtransaction_enter(PyObject *self, PyObject *unused);
static PyObject *PLy_subtransaction_exit(PyObject *self, PyObject *args);
static char PLy_subtransaction_doc[] = {
"PostgreSQL subtransaction context manager"
};
static char PLy_subtransaction_doc[] =
"PostgreSQL subtransaction context manager";
static PyMethodDef PLy_subtransaction_methods[] = {
{"__enter__", PLy_subtransaction_enter, METH_VARARGS, NULL},

View File

@ -19,7 +19,7 @@
long
random()
random(void)
{
return pg_lrand48();
}