From 1e08c25f73d38b10679f1bc84861ffb498884cef Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 26 Oct 2021 14:10:35 +0300 Subject: Normalize C comments in tests source code --- libpq/tests/conninfo/driver.c | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'libpq/tests/conninfo/driver.c') diff --git a/libpq/tests/conninfo/driver.c b/libpq/tests/conninfo/driver.c index 2107ac9..a924b0b 100644 --- a/libpq/tests/conninfo/driver.c +++ b/libpq/tests/conninfo/driver.c @@ -2,16 +2,14 @@ * license : PostgreSQL License; see accompanying COPYRIGHT file */ -/* - * Include the upstream package test and rename it's main() function to test() +/* Include the upstream package test and rename it's main() function to test() * (see below for details). */ #define main test #include #undef main -/* - * Enable assertions. +/* Enable assertions. */ #ifdef NDEBUG # undef NDEBUG @@ -21,8 +19,7 @@ #include #include /* strlen() */ -/* - * Usage: argv[0] +/* Usage: argv[0] * * Read connection info strings from STDIN and call upstream test main() * function for each of them. The function prints the parsed connection info to @@ -37,13 +34,11 @@ main (int argc, char* argv[]) while (fgets (s, sizeof(s), stdin) != NULL) { - /* - * Print the conninfo string that will be tested. + /* Print the conninfo string that will be tested. */ printf ("trying %s", s); - /* - * Strip the newline character and make sure it is printed to stdout. + /* Strip the newline character and make sure it is printed to stdout. */ size_t n = strlen (s); if (n != 0 && s[n - 1] == '\n') @@ -51,14 +46,12 @@ main (int argc, char* argv[]) else printf ("\n"); - /* - * Make sure the output make sense if stderr is redirected to stdout (and + /* Make sure the output make sense if stderr is redirected to stdout (and * vice versa). */ fflush (stdout); - /* - * Run the test. + /* Run the test. * * Note that we need to print the trailing newline character ourselves. */ -- cgit v1.1