Skip to content

Commit

Permalink
PG-934 Fix codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
artemgavrilov committed Aug 1, 2024
1 parent 4e7df71 commit 8b48db2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions percona_pg_telemetry.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ static char *generate_filename(char *filename);
static bool validate_dir(char *folder_path);

#if PG_VERSION_NUM >= 130000
static int compareFileNames(const ListCell *a, const ListCell *b);
static int compare_file_names(const ListCell *a, const ListCell *b);
#else
static int compareFileNames(const void *a, const void *b);
static int compare_file_names(const void *a, const void *b);
#endif

/* Database information collection and writing to file */
Expand Down Expand Up @@ -274,7 +274,7 @@ load_telemery_files(void)
#if PG_VERSION_NUM >= 130000
list_sort(files_list, compareFileNames);
#else
files_list = list_qsort(files_list, compareFileNames);
files_list = list_qsort(files_list, compare_file_names);
#endif

foreach(lc, files_list)
Expand All @@ -290,7 +290,7 @@ load_telemery_files(void)

#if PG_VERSION_NUM >= 130000
static int
compareFileNames(const ListCell *a, const ListCell *b)
compare_file_names(const ListCell *a, const ListCell *b)
{
char *fna = (char *) lfirst(a);
char *fnb = (char *) lfirst(b);
Expand All @@ -299,7 +299,7 @@ compareFileNames(const ListCell *a, const ListCell *b)

#else
static int
compareFileNames(const void *a, const void *b)
compare_file_names(const void *a, const void *b)
{
char *fna = (char *) lfirst(*(ListCell **) a);
char *fnb = (char *) lfirst(*(ListCell **) b);
Expand Down

0 comments on commit 8b48db2

Please sign in to comment.