diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-06 01:42:13 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-06 01:42:13 +0200 |
commit | f2ee15e4ec3a02e4be6a522bb7b276bdf5703301 (patch) | |
tree | bfc43bf5dc1b2d8fec9a1c68c8c8e140f696f09f /common-address.c | |
parent | m (diff) | |
download | contacts-f2ee15e4ec3a02e4be6a522bb7b276bdf5703301.tar.gz contacts-f2ee15e4ec3a02e4be6a522bb7b276bdf5703301.tar.bz2 contacts-f2ee15e4ec3a02e4be6a522bb7b276bdf5703301.tar.xz |
m + add block utils
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | common-address.c | 6 |
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; } |