From f2ee15e4ec3a02e4be6a522bb7b276bdf5703301 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 6 Apr 2021 01:42:13 +0200 Subject: m + add block utils MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- common-address.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common-address.c') 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; } -- cgit v1.2.3-70-g09d2