]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Harmonize pg_bsd_indent parameter names.
authorPeter Geoghegan <pg@bowt.ie>
Wed, 12 Jun 2024 22:04:10 +0000 (18:04 -0400)
committerPeter Geoghegan <pg@bowt.ie>
Wed, 12 Jun 2024 22:04:10 +0000 (18:04 -0400)
Make sure that function declarations use names that exactly match the
corresponding names from function definitions in pg_bsd_indent.

This commit was written with help from clang-tidy, by mechanically
applying the same rules as similar clean-up commits.

Discussion: https://postgr.es/m/CAH2-WzkaBS8w-vCbG5M5Bx7XikC0WhNLJV_+Z_YAWW9Kef6OBQ@mail.gmail.com

src/tools/pg_bsd_indent/args.c
src/tools/pg_bsd_indent/indent.c

index 38eaa5a5bf28c72612804d1688f1305a61e70143..5fa7e6b038cc761a46fc89a9cde2af1551d8abfd 100644 (file)
@@ -68,7 +68,7 @@ static char sccsid[] = "@(#)args.c    8.1 (Berkeley) 6/6/93";
 #define        STDIN           3       /* use stdin */
 #define        KEY             4       /* type (keyword) */
 
-static void scan_profile(FILE *);
+static void scan_profile(FILE *f);
 
 #define        KEY_FILE                5       /* only used for args */
 #define VERSION                        6       /* only used for args */
index 923fc34b858ee7c48fcd649c157cecc79a261582..2622cc6227af059c81ae2f9720769150984cac3c 100644 (file)
@@ -54,7 +54,7 @@ static char sccsid[] = "@(#)indent.c  5.17 (Berkeley) 6/7/93";
 #include "indent.h"
 
 static void bakcopy(void);
-static void indent_declaration(int, int);
+static void indent_declaration(int cur_dec_ind, int tabs_to_var);
 
 const char *in_name = "Standard Input";        /* will always point to name of input
                                         * file */