summaryrefslogtreecommitdiff
path: root/contrib/seg
diff options
context:
space:
mode:
authorPeter Geoghegan2022-09-22 20:59:20 +0000
committerPeter Geoghegan2022-09-22 20:59:20 +0000
commit0faf7d933f625eb1668dcaa518b472f722b53a55 (patch)
tree5fce7103c75871bec2ec1636d8751245cb7374a0 /contrib/seg
parent8fb4e001e9c185250a95b2b13880a2a04d626b75 (diff)
Harmonize parameter names in contrib code.
Make sure that function declarations use names that exactly match the corresponding names from function definitions in contrib code. Like other recent commits that cleaned up function parameter names, this commit was written with help from clang-tidy. Author: Peter Geoghegan <pg@bowt.ie> Discussion: https://postgr.es/m/CAH2-WznJt9CMM9KJTMjJh_zbL5hD9oX44qdJ4aqZtjFi-zA3Tg@mail.gmail.com
Diffstat (limited to 'contrib/seg')
-rw-r--r--contrib/seg/seg.c2
-rw-r--r--contrib/seg/segdata.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/seg/seg.c b/contrib/seg/seg.c
index 4a8e2be3290..cb677e0ae51 100644
--- a/contrib/seg/seg.c
+++ b/contrib/seg/seg.c
@@ -92,7 +92,7 @@ PG_FUNCTION_INFO_V1(seg_different);
/*
** Auxiliary functions
*/
-static int restore(char *s, float val, int n);
+static int restore(char *result, float val, int n);
/*****************************************************************************
diff --git a/contrib/seg/segdata.h b/contrib/seg/segdata.h
index 9488bf3a81a..f4eafc865d9 100644
--- a/contrib/seg/segdata.h
+++ b/contrib/seg/segdata.h
@@ -12,7 +12,7 @@ typedef struct SEG
} SEG;
/* in seg.c */
-extern int significant_digits(const char *str);
+extern int significant_digits(const char *s);
/* in segscan.l */
extern int seg_yylex(void);