Skip to content

Commit 9706c82

Browse files
committed
fix formatting
1 parent cae48ab commit 9706c82

File tree

7 files changed

+15
-14
lines changed

7 files changed

+15
-14
lines changed

src/check_function.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ static void passive_check_func_beg(PLpgSQL_execstate *estate, PLpgSQL_function *
7171
static plpgsql_check_plugin2 check_plugin2 =
7272
{
7373
NULL,
74-
passive_check_func_beg, NULL, NULL,
75-
NULL, NULL, NULL,
76-
NULL, NULL, NULL, NULL, NULL
74+
passive_check_func_beg, NULL, NULL,
75+
NULL, NULL, NULL,
76+
NULL, NULL, NULL, NULL, NULL
7777
};
7878

7979
/*

src/cursors_leaks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static void stmt_end(PLpgSQL_execstate *estate, PLpgSQL_stmt *stmt, void **plugi
6969
static plpgsql_check_plugin2 cursors_leaks_plugin2 =
7070
{
7171
func_setup, NULL, func_end, NULL,
72-
NULL, stmt_end, NULL, NULL, NULL, NULL, NULL, NULL
72+
NULL, stmt_end, NULL, NULL, NULL, NULL, NULL, NULL
7373
};
7474

7575
#if PG_VERSION_NUM >= 170000

src/pldbgapi2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static fmgr_plpgsql_cache *last_fmgr_plpgsql_cache = NULL;
102102
static needs_fmgr_hook_type prev_needs_fmgr_hook = NULL;
103103
static fmgr_hook_type prev_fmgr_hook = NULL;
104104

105-
static plpgsql_check_plugin2 * plpgsql_plugins2[MAX_PLDBGAPI2_PLUGINS];
105+
static plpgsql_check_plugin2 *plpgsql_plugins2[MAX_PLDBGAPI2_PLUGINS];
106106
static int nplpgsql_plugins2 = 0;
107107

108108
static void pldbgapi2_func_setup(PLpgSQL_execstate *estate, PLpgSQL_function *func);
@@ -1293,7 +1293,7 @@ pldbgapi2_stmt_end(PLpgSQL_execstate *estate, PLpgSQL_stmt *stmt)
12931293
}
12941294

12951295
void
1296-
plpgsql_check_register_pldbgapi2_plugin(plpgsql_check_plugin2 * plugin2)
1296+
plpgsql_check_register_pldbgapi2_plugin(plpgsql_check_plugin2 *plugin2)
12971297
{
12981298
if (nplpgsql_plugins2 < MAX_PLDBGAPI2_PLUGINS)
12991299
plpgsql_plugins2[nplpgsql_plugins2++] = plugin2;

src/plpgsql_check.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,9 @@ typedef struct plpgsql_check_plugin2
465465
Datum value, bool *isnull,
466466
Oid valtype, int32 valtypmod,
467467
Oid reqtype, int32 reqtypmod);
468-
} plpgsql_check_plugin2;
468+
} plpgsql_check_plugin2;
469469

470-
extern void plpgsql_check_register_pldbgapi2_plugin(plpgsql_check_plugin2 * plugin2);
470+
extern void plpgsql_check_register_pldbgapi2_plugin(plpgsql_check_plugin2 *plugin2);
471471
extern void plpgsql_check_init_pldbgapi2(void);
472472

473473
extern plpgsql_check_plugin2_stmt_info * plpgsql_check_get_current_stmt_info(int stmtid);

src/profiler.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ static void profiler_stmt_end_aborted(Oid fn_oid, int stmtid, void **plugin2_inf
220220
static plpgsql_check_plugin2 profiler_plugin2 =
221221
{
222222
profiler_func_setup,
223-
NULL, profiler_func_end, profiler_func_end_aborted,
224-
profiler_stmt_beg, profiler_stmt_end, profiler_stmt_end_aborted,
225-
NULL, NULL, NULL, NULL, NULL
223+
NULL, profiler_func_end, profiler_func_end_aborted,
224+
profiler_stmt_beg, profiler_stmt_end, profiler_stmt_end_aborted,
225+
NULL, NULL, NULL, NULL, NULL
226226
};
227227

228228
static HTAB *profiler_HashTable = NULL;

src/tracer.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ static void tracer_stmt_end_aborted(Oid fn_oid, int stmtid, void **plugin2_info)
7373
static plpgsql_check_plugin2 tracer_plugin2 =
7474
{
7575
tracer_func_setup,
76-
tracer_func_beg, tracer_func_end, tracer_func_end_aborted,
77-
tracer_stmt_beg, tracer_stmt_end, tracer_stmt_end_aborted,
78-
NULL, NULL, NULL, NULL, NULL
76+
tracer_func_beg, tracer_func_end, tracer_func_end_aborted,
77+
tracer_stmt_beg, tracer_stmt_end, tracer_stmt_end_aborted,
78+
NULL, NULL, NULL, NULL, NULL
7979
};
8080

8181
/*

typedefs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ plpgsql_check_info
3434
plpgsql_check_pragma_vector
3535
PLpgSQL_checkstate
3636
plpgsql_check_HashEnt
37+
plpgsql_check_plugin2
3738
coverage_state
3839
ACCESS_ALLOWED_ACE
3940
ACL

0 commit comments

Comments
 (0)