1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Add some const decorations to prototypes

Reviewed-by: Fabien COELHO <coelho@cri.ensmp.fr>
This commit is contained in:
Peter Eisentraut
2017-10-31 10:34:31 -04:00
parent 7e60e67861
commit 0e1539ba0d
95 changed files with 236 additions and 236 deletions

View File

@ -1052,9 +1052,9 @@ restore(char *result, float val, int n)
* a floating point number
*/
int
significant_digits(char *s)
significant_digits(const char *s)
{
char *p = s;
const char *p = s;
int n,
c,
zeroes;

View File

@ -12,7 +12,7 @@ typedef struct SEG
} SEG;
/* in seg.c */
extern int significant_digits(char *str);
extern int significant_digits(const char *str);
/* in segscan.l */
extern int seg_yylex(void);

View File

@ -21,7 +21,7 @@
#define YYMALLOC palloc
#define YYFREE pfree
static float seg_atof(char *value);
static float seg_atof(const char *value);
static char strbuf[25] = {
'0', '0', '0', '0', '0',
@ -151,7 +151,7 @@ deviation: SEGFLOAT
static float
seg_atof(char *value)
seg_atof(const char *value)
{
Datum datum;