summaryrefslogtreecommitdiff
path: root/gpsutils.c
diff options
context:
space:
mode:
authorZbigniew Chyla <zbigniew.chyla@nsn.com>2015-02-16 01:30:08 +0100
committerEric S. Raymond <esr@thyrsus.com>2015-02-15 22:03:53 -0500
commit68eaa6fc71f4d03b8d6fc3361569ba0906ee394d (patch)
tree1ef466709b8cdc402d4afbee2aea02a71dcbe3e2 /gpsutils.c
parent780a9efb4c6fe2330489fe835ba5c908b588c4ea (diff)
downloadgpsd-68eaa6fc71f4d03b8d6fc3361569ba0906ee394d.tar.gz
timespec_str: add "const" to input argument
Diffstat (limited to 'gpsutils.c')
-rw-r--r--gpsutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsutils.c b/gpsutils.c
index 7184566a..d4002bdd 100644
--- a/gpsutils.c
+++ b/gpsutils.c
@@ -502,7 +502,7 @@ double earth_distance(double lat1, double lon1, double lat2, double lon2)
* So 21 digits like this: "-2147483647.123456789"
*
*/
-int timespec_str(struct timespec *ts, /*@out@*/char *buf, int buf_size)
+int timespec_str(const struct timespec *ts, /*@out@*/char *buf, int buf_size)
{
int ret;
char sign = ' ';