diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-05-14 13:06:38 -0400 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-05-14 13:06:50 -0400 |
| commit | 5cbfce562f7cd2aab0cdc4694ce298ec3567930e (patch) | |
| tree | 64e722d72fc5f1803cb6f6371d6cf12863e2812f /src/test/modules | |
| parent | 1255466f8358ecac29581aa5ecec76628dc2e33c (diff) | |
Initial pgindent and pgperltidy run for v13.
Includes some manual cleanup of places that pgindent messed up,
most of which weren't per project style anyway.
Notably, it seems some people didn't absorb the style rules of
commit c9d297751, because there were a bunch of new occurrences
of function calls with a newline just after the left paren, all
with faulty expectations about how the rest of the call would get
indented.
Diffstat (limited to 'src/test/modules')
| -rw-r--r-- | src/test/modules/dummy_index_am/dummy_index_am.c | 11 | ||||
| -rw-r--r-- | src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c | 6 |
2 files changed, 10 insertions, 7 deletions
diff --git a/src/test/modules/dummy_index_am/dummy_index_am.c b/src/test/modules/dummy_index_am/dummy_index_am.c index f32632089b1..e97a32d5be2 100644 --- a/src/test/modules/dummy_index_am/dummy_index_am.c +++ b/src/test/modules/dummy_index_am/dummy_index_am.c @@ -31,10 +31,11 @@ relopt_parse_elt di_relopt_tab[6]; /* Kind of relation options for dummy index */ relopt_kind di_relopt_kind; -typedef enum DummyAmEnum { +typedef enum DummyAmEnum +{ DUMMY_AM_ENUM_ONE, DUMMY_AM_ENUM_TWO -} DummyAmEnum; +} DummyAmEnum; /* Dummy index options */ typedef struct DummyIndexOptions @@ -43,16 +44,16 @@ typedef struct DummyIndexOptions int option_int; double option_real; bool option_bool; - DummyAmEnum option_enum; + DummyAmEnum option_enum; int option_string_val_offset; int option_string_null_offset; -} DummyIndexOptions; +} DummyIndexOptions; relopt_enum_elt_def dummyAmEnumValues[] = { {"one", DUMMY_AM_ENUM_ONE}, {"two", DUMMY_AM_ENUM_TWO}, - {(const char *)NULL} /* list terminator */ + {(const char *) NULL} /* list terminator */ }; /* Handler for index AM */ diff --git a/src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c b/src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c index c95cb509458..563ff144cc1 100644 --- a/src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c +++ b/src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c @@ -26,9 +26,11 @@ void _PG_fini(void); static char *ssl_passphrase = NULL; /* callback function */ -static int rot13_passphrase(char *buf, int size, int rwflag, void *userdata); +static int rot13_passphrase(char *buf, int size, int rwflag, void *userdata); + /* hook function to set the callback */ static void set_rot13(SSL_CTX *context, bool isServerStart); + /* * Module load callback */ @@ -60,7 +62,7 @@ static void set_rot13(SSL_CTX *context, bool isServerStart) { /* warn if the user has set ssl_passphrase_command */ - if(ssl_passphrase_command[0]) + if (ssl_passphrase_command[0]) ereport(WARNING, (errmsg("ssl_passphrase_command setting ignored by ssl_passphrase_func module"))); |
