Clear some style deviations.
authorNoah Misch <noah@leadboat.com>
Thu, 21 May 2020 15:31:16 +0000 (08:31 -0700)
committerNoah Misch <noah@leadboat.com>
Thu, 21 May 2020 15:31:16 +0000 (08:31 -0700)
contrib/pgcrypto/pgp-mpi-internal.c
src/backend/postmaster/autovacuum.c
src/backend/storage/buffer/freelist.c
src/backend/storage/smgr/md.c
src/backend/utils/misc/queryenvironment.c
src/interfaces/libpq/fe-misc.c
src/pl/plpython/plpy_cursorobject.c
src/pl/plpython/plpy_planobject.c
src/pl/plpython/plpy_resultobject.c
src/pl/plpython/plpy_subxactobject.c
src/port/random.c

index 2353a48a074bfa74645eb6936750c833af473941..0cea5141805841933bafc6d1c556b21075beed5d 100644 (file)
@@ -35,7 +35,7 @@
 #include "px.h"
 
 static mpz_t *
-mp_new()
+mp_new(void)
 {
        mpz_t      *mp = mp_int_alloc();
 
index 6829ff3e8f83d37ddf9e053461de8aad786126d8..a8d4dfdd7cc00050261bae9400546f66ae632f5e 100644 (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")));
index aa5539a2e450b89135dbacc06c1383df23edc386..942f8d4edd2679e1a85ee920b6e5b5e0376121ad 100644 (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;
index e0b020da11126a4b865cecd33204e7fcaeb3ea27..0eacd461cd382d57ae437f73bd77fb352e129ff1 100644 (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);
index c0b85ed0b36e4ae9ae0dffd4a62923dd65a9a131..31de81f353eba525f4d98d1ae3af64acb5488283 100644 (file)
@@ -36,7 +36,7 @@ struct QueryEnvironment
 
 
 QueryEnvironment *
-create_queryEnv()
+create_queryEnv(void)
 {
        return (QueryEnvironment *) palloc0(sizeof(QueryEnvironment));
 }
index 19729f9631152911321b99558988945997ee2f06..9afa0533a627436910f9ef3fc1573fe3ef233cb9 100644 (file)
@@ -1250,7 +1250,7 @@ PQenv2encoding(void)
 #ifdef ENABLE_NLS
 
 static void
-libpq_binddomain()
+libpq_binddomain(void)
 {
        static bool already_bound = false;
 
index 4c37ff898c9fb70c775801ae2e2cbfb9caad4c96..08d8b607e38cc39dd2fe698602af77469808bb1a 100644 (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},
index c23e79fe55f865897e8b870a8027df210e67f433..5951d2a6ff5f0710f928fd8eaa24d0dcbb776e03 100644 (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},
index b31dbdaa1d4d0bcba64523653f69ce9ce0729ac7..54f39419c840ce74da7bc4f93ce981e3e68096c4 100644 (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,
index 98d7c90c81b6911d3dfd238b3370d54e8a087836..5c92a0e089a1b214e61178328047ceaa534286d0 100644 (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},
index f3021458be2a4c2da5c87380565c4fea2f1396fb..f04432fe1f892c1b2c31a38df022cff3dd976d64 100644 (file)
@@ -19,7 +19,7 @@
 
 
 long
-random()
+random(void)
 {
        return pg_lrand48();
 }