aboutsummaryrefslogtreecommitdiffstats
path: root/common-address.c
diff options
context:
space:
mode:
Diffstat (limited to 'common-address.c')
-rw-r--r--common-address.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common-address.c b/common-address.c
index 2f66208..c8dbf7e 100644
--- a/common-address.c
+++ b/common-address.c
@@ -3,7 +3,7 @@
int
-parse_coord(char *s, double *lat, double *lat_min, double *lat_max, double *lon, double *lon_min, double *lon_max)
+parse_coord(const char *s, double *lat, double *lat_min, double *lat_max, double *lon, double *lon_min, double *lon_max)
{
int withsign = 0, neg;
long int tmp;
@@ -22,7 +22,7 @@ parse_coord(char *s, double *lat, double *lat_min, double *lat_max, double *lon,
s = &s[withsign];
tmp = 0;
if (isdigit(s[withsign])) {
- tmp = strtol(s, &s, 0);
+ tmp = strtol(s, (void *)&s, 0);
if (errno || tmp > INT_MAX)
return -1;
}
@@ -61,7 +61,7 @@ parse_coord(char *s, double *lat, double *lat_min, double *lat_max, double *lon,
s = &s[withsign];
tmp = 0;
if (isdigit(s[withsign])) {
- tmp = strtol(s, &s, 0);
+ tmp = strtol(s, (void *)&s, 0);
if (errno || tmp > INT_MAX)
return -1;
}