Fix code indentation violations introduced by recent commit
authorMichael Paquier <michael@paquier.xyz>
Fri, 11 Aug 2023 11:43:34 +0000 (20:43 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 11 Aug 2023 11:43:34 +0000 (20:43 +0900)
The two culprit commits are 5765cfe and 5e0c761.

Per buildfarm member koel for the first commit, while I have noticed the
second one in passing.

src/backend/utils/fmgr/fmgr.c
src/backend/utils/misc/guc.c
src/bin/pgbench/pgbench.c

index 6b2d7d7be38161c32f77e6bfd6b4ff5468f7d078..9dfdf890c51b47219c984349856a5a6f960cf197 100644 (file)
@@ -669,7 +669,8 @@ fmgr_security_definer(PG_FUNCTION_ARGS)
                                &isnull);
        if (!isnull)
        {
-           ArrayType *array;
+           ArrayType  *array;
+
            oldcxt = MemoryContextSwitchTo(fcinfo->flinfo->fn_mcxt);
            array = DatumGetArrayTypeP(datum);
            TransformGUCArray(array, &fcache->configNames,
@@ -686,7 +687,7 @@ fmgr_security_definer(PG_FUNCTION_ARGS)
 
    /* GetUserIdAndSecContext is cheap enough that no harm in a wasted call */
    GetUserIdAndSecContext(&save_userid, &save_sec_context);
-   if (fcache->configNames != NIL)     /* Need a new GUC nesting level */
+   if (fcache->configNames != NIL) /* Need a new GUC nesting level */
        save_nestlevel = NewGUCNestLevel();
    else
        save_nestlevel = 0;     /* keep compiler quiet */
@@ -697,11 +698,11 @@ fmgr_security_definer(PG_FUNCTION_ARGS)
 
    forboth(lc1, fcache->configNames, lc2, fcache->configValues)
    {
-       GucContext   context = superuser() ? PGC_SUSET : PGC_USERSET;
-       GucSource    source  = PGC_S_SESSION;
-       GucAction    action  = GUC_ACTION_SAVE;
-       char        *name    = lfirst(lc1);
-       char        *value   = lfirst(lc2);
+       GucContext  context = superuser() ? PGC_SUSET : PGC_USERSET;
+       GucSource   source = PGC_S_SESSION;
+       GucAction   action = GUC_ACTION_SAVE;
+       char       *name = lfirst(lc1);
+       char       *value = lfirst(lc2);
 
        (void) set_config_option(name, value,
                                 context, source,
index 3449470953a14c75a046ef5b3e1a18fd29d0fd5a..99bb2fdd1906546eda51293c84db4d5de6fe5f53 100644 (file)
@@ -6280,16 +6280,16 @@ void
 ProcessGUCArray(ArrayType *array,
                GucContext context, GucSource source, GucAction action)
 {
-   List *gucNames;
-   List *gucValues;
-   ListCell *lc1;
-   ListCell *lc2;
+   List       *gucNames;
+   List       *gucValues;
+   ListCell   *lc1;
+   ListCell   *lc2;
 
    TransformGUCArray(array, &gucNames, &gucValues);
    forboth(lc1, gucNames, lc2, gucValues)
    {
-       char *name = lfirst(lc1);
-       char *value = lfirst(lc2);
+       char       *name = lfirst(lc1);
+       char       *value = lfirst(lc2);
 
        (void) set_config_option(name, value,
                                 context, source,
index d2b7fc87e44b76e84f39919a9c2a8a1e6895fb3d..763c4b946a45e5f1bed1731cee161df15b66f2cd 100644 (file)
@@ -2246,7 +2246,7 @@ evalStandardFunc(CState *st,
     * This value is double braced to workaround GCC bug 53119, which seems to
     * exist at least on gcc (Debian 4.7.2-5) 4.7.2, 32-bit.
     */
-   PgBenchValue vargs[MAX_FARGS] = { { 0 } };
+   PgBenchValue vargs[MAX_FARGS] = {{0}};
 
    for (nargs = 0; nargs < MAX_FARGS && l != NULL; nargs++, l = l->next)
    {