summaryrefslogtreecommitdiff
path: root/src/test/modules
diff options
context:
space:
mode:
authorTom Lane2019-05-22 17:04:48 +0000
committerTom Lane2019-05-22 17:04:48 +0000
commit8255c7a5eeba8f1a38b7a431c04909bde4f5e67d (patch)
tree50b5b32eaf388701b2714244a10fb23f8d4a2c7c /src/test/modules
parentbe76af171cdb3e7465c4ef234af403f97ad79b7b (diff)
Phase 2 pgindent run for v12.
Switch to 2.1 version of pg_bsd_indent. This formats multiline function declarations "correctly", that is with additional lines of parameter declarations indented to match where the first line's left parenthesis is. Discussion: https://postgr.es/m/CAEepm=0P3FeTXRcU5B2W3jv3PgRVZ-kGUXLGfd42FFhUROO3ug@mail.gmail.com
Diffstat (limited to 'src/test/modules')
-rw-r--r--src/test/modules/test_shm_mq/setup.c10
-rw-r--r--src/test/modules/test_shm_mq/test.c2
-rw-r--r--src/test/modules/test_shm_mq/test_shm_mq.h4
-rw-r--r--src/test/modules/test_shm_mq/worker.c4
4 files changed, 10 insertions, 10 deletions
diff --git a/src/test/modules/test_shm_mq/setup.c b/src/test/modules/test_shm_mq/setup.c
index 349b043e640..a3181685f69 100644
--- a/src/test/modules/test_shm_mq/setup.c
+++ b/src/test/modules/test_shm_mq/setup.c
@@ -31,14 +31,14 @@ typedef struct
} worker_state;
static void setup_dynamic_shared_memory(int64 queue_size, int nworkers,
- dsm_segment **segp,
- test_shm_mq_header **hdrp,
- shm_mq **outp, shm_mq **inp);
+ dsm_segment **segp,
+ test_shm_mq_header **hdrp,
+ shm_mq **outp, shm_mq **inp);
static worker_state *setup_background_workers(int nworkers,
- dsm_segment *seg);
+ dsm_segment *seg);
static void cleanup_background_workers(dsm_segment *seg, Datum arg);
static void wait_for_workers_to_become_ready(worker_state *wstate,
- volatile test_shm_mq_header *hdr);
+ volatile test_shm_mq_header *hdr);
static bool check_worker_status(worker_state *wstate);
/*
diff --git a/src/test/modules/test_shm_mq/test.c b/src/test/modules/test_shm_mq/test.c
index a8f8447a467..9b849cccc30 100644
--- a/src/test/modules/test_shm_mq/test.c
+++ b/src/test/modules/test_shm_mq/test.c
@@ -27,7 +27,7 @@ PG_FUNCTION_INFO_V1(test_shm_mq_pipelined);
void _PG_init(void);
static void verify_message(Size origlen, char *origdata, Size newlen,
- char *newdata);
+ char *newdata);
/*
* Simple test of the shared memory message queue infrastructure.
diff --git a/src/test/modules/test_shm_mq/test_shm_mq.h b/src/test/modules/test_shm_mq/test_shm_mq.h
index e12ba1e081b..4c0722297e9 100644
--- a/src/test/modules/test_shm_mq/test_shm_mq.h
+++ b/src/test/modules/test_shm_mq/test_shm_mq.h
@@ -36,8 +36,8 @@ typedef struct
/* Set up dynamic shared memory and background workers for test run. */
extern void test_shm_mq_setup(int64 queue_size, int32 nworkers,
- dsm_segment **seg, shm_mq_handle **output,
- shm_mq_handle **input);
+ dsm_segment **seg, shm_mq_handle **output,
+ shm_mq_handle **input);
/* Main entrypoint for a worker. */
extern void test_shm_mq_main(Datum) pg_attribute_noreturn();
diff --git a/src/test/modules/test_shm_mq/worker.c b/src/test/modules/test_shm_mq/worker.c
index 3ff4987c815..9f8e77e08c3 100644
--- a/src/test/modules/test_shm_mq/worker.c
+++ b/src/test/modules/test_shm_mq/worker.c
@@ -29,8 +29,8 @@
static void handle_sigterm(SIGNAL_ARGS);
static void attach_to_queues(dsm_segment *seg, shm_toc *toc,
- int myworkernumber, shm_mq_handle **inqhp,
- shm_mq_handle **outqhp);
+ int myworkernumber, shm_mq_handle **inqhp,
+ shm_mq_handle **outqhp);
static void copy_messages(shm_mq_handle *inqh, shm_mq_handle *outqh);
/*