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:
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user