Commit 3350fb5d authored by Noah Misch's avatar Noah Misch

Clear some style deviations.

parent e4db972e
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#include "px.h" #include "px.h"
static mpz_t * static mpz_t *
mp_new() mp_new(void)
{ {
mpz_t *mp = mp_int_alloc(); mpz_t *mp = mp_int_alloc();
......
...@@ -834,7 +834,7 @@ HandleAutoVacLauncherInterrupts(void) ...@@ -834,7 +834,7 @@ HandleAutoVacLauncherInterrupts(void)
* Perform a normal exit from the autovac launcher. * Perform a normal exit from the autovac launcher.
*/ */
static void static void
AutoVacLauncherShutdown() AutoVacLauncherShutdown(void)
{ {
ereport(DEBUG1, ereport(DEBUG1,
(errmsg("autovacuum launcher shutting down"))); (errmsg("autovacuum launcher shutting down")));
......
...@@ -177,7 +177,7 @@ ClockSweepTick(void) ...@@ -177,7 +177,7 @@ ClockSweepTick(void)
* should not call this. * should not call this.
*/ */
bool bool
have_free_buffer() have_free_buffer(void)
{ {
if (StrategyControl->firstFreeBuffer >= 0) if (StrategyControl->firstFreeBuffer >= 0)
return true; return true;
......
...@@ -1114,7 +1114,7 @@ _mdfd_openseg(SMgrRelation reln, ForkNumber forknum, BlockNumber segno, ...@@ -1114,7 +1114,7 @@ _mdfd_openseg(SMgrRelation reln, ForkNumber forknum, BlockNumber segno,
int oflags) int oflags)
{ {
MdfdVec *v; MdfdVec *v;
int fd; File fd;
char *fullpath; char *fullpath;
fullpath = _mdfd_segpath(reln, forknum, segno); fullpath = _mdfd_segpath(reln, forknum, segno);
......
...@@ -36,7 +36,7 @@ struct QueryEnvironment ...@@ -36,7 +36,7 @@ struct QueryEnvironment
QueryEnvironment * QueryEnvironment *
create_queryEnv() create_queryEnv(void)
{ {
return (QueryEnvironment *) palloc0(sizeof(QueryEnvironment)); return (QueryEnvironment *) palloc0(sizeof(QueryEnvironment));
} }
......
...@@ -1250,7 +1250,7 @@ PQenv2encoding(void) ...@@ -1250,7 +1250,7 @@ PQenv2encoding(void)
#ifdef ENABLE_NLS #ifdef ENABLE_NLS
static void static void
libpq_binddomain() libpq_binddomain(void)
{ {
static bool already_bound = false; static bool already_bound = false;
......
...@@ -27,9 +27,7 @@ static PyObject *PLy_cursor_iternext(PyObject *self); ...@@ -27,9 +27,7 @@ static PyObject *PLy_cursor_iternext(PyObject *self);
static PyObject *PLy_cursor_fetch(PyObject *self, PyObject *args); static PyObject *PLy_cursor_fetch(PyObject *self, PyObject *args);
static PyObject *PLy_cursor_close(PyObject *self, PyObject *unused); static PyObject *PLy_cursor_close(PyObject *self, PyObject *unused);
static char PLy_cursor_doc[] = { static char PLy_cursor_doc[] = "Wrapper around a PostgreSQL cursor";
"Wrapper around a PostgreSQL cursor"
};
static PyMethodDef PLy_cursor_methods[] = { static PyMethodDef PLy_cursor_methods[] = {
{"fetch", PLy_cursor_fetch, METH_VARARGS, NULL}, {"fetch", PLy_cursor_fetch, METH_VARARGS, NULL},
......
...@@ -18,9 +18,7 @@ static PyObject *PLy_plan_cursor(PyObject *self, PyObject *args); ...@@ -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_execute(PyObject *self, PyObject *args);
static PyObject *PLy_plan_status(PyObject *self, PyObject *args); static PyObject *PLy_plan_status(PyObject *self, PyObject *args);
static char PLy_plan_doc[] = { static char PLy_plan_doc[] = "Store a PostgreSQL plan";
"Store a PostgreSQL plan"
};
static PyMethodDef PLy_plan_methods[] = { static PyMethodDef PLy_plan_methods[] = {
{"cursor", PLy_plan_cursor, METH_VARARGS, NULL}, {"cursor", PLy_plan_cursor, METH_VARARGS, NULL},
......
...@@ -22,9 +22,7 @@ static PyObject *PLy_result_str(PyObject *arg); ...@@ -22,9 +22,7 @@ static PyObject *PLy_result_str(PyObject *arg);
static PyObject *PLy_result_subscript(PyObject *arg, PyObject *item); static PyObject *PLy_result_subscript(PyObject *arg, PyObject *item);
static int PLy_result_ass_subscript(PyObject *self, PyObject *item, PyObject *value); static int PLy_result_ass_subscript(PyObject *self, PyObject *item, PyObject *value);
static char PLy_result_doc[] = { static char PLy_result_doc[] = "Results of a PostgreSQL query";
"Results of a PostgreSQL query"
};
static PySequenceMethods PLy_result_as_sequence = { static PySequenceMethods PLy_result_as_sequence = {
.sq_length = PLy_result_length, .sq_length = PLy_result_length,
......
...@@ -19,9 +19,8 @@ static void PLy_subtransaction_dealloc(PyObject *subxact); ...@@ -19,9 +19,8 @@ static void PLy_subtransaction_dealloc(PyObject *subxact);
static PyObject *PLy_subtransaction_enter(PyObject *self, PyObject *unused); static PyObject *PLy_subtransaction_enter(PyObject *self, PyObject *unused);
static PyObject *PLy_subtransaction_exit(PyObject *self, PyObject *args); static PyObject *PLy_subtransaction_exit(PyObject *self, PyObject *args);
static char PLy_subtransaction_doc[] = { static char PLy_subtransaction_doc[] =
"PostgreSQL subtransaction context manager" "PostgreSQL subtransaction context manager";
};
static PyMethodDef PLy_subtransaction_methods[] = { static PyMethodDef PLy_subtransaction_methods[] = {
{"__enter__", PLy_subtransaction_enter, METH_VARARGS, NULL}, {"__enter__", PLy_subtransaction_enter, METH_VARARGS, NULL},
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
long long
random() random(void)
{ {
return pg_lrand48(); return pg_lrand48();
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment