diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-04-06 09:16:41 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-04-06 09:16:41 -0400 |
commit | 4eba32338c246916373f5f3db8beb08e024e8ce5 (patch) | |
tree | b5bdfffd10e6b5d001e52ba5114393a411f36496 /libgps_sock.c | |
parent | add92ecbfc21218d9f086383b6589d1eaf18a0f6 (diff) | |
download | gpsd-4eba32338c246916373f5f3db8beb08e024e8ce5.tar.gz |
Add const qualifiers to some arguments never modified.
Diffstat (limited to 'libgps_sock.c')
-rw-r--r-- | libgps_sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgps_sock.c b/libgps_sock.c index fd5f4cb1..159da239 100644 --- a/libgps_sock.c +++ b/libgps_sock.c @@ -94,7 +94,7 @@ int gps_sock_open(/*@null@*/const char *host, /*@null@*/const char *port, } /*@+branchstate@*/ -bool gps_waiting(struct gps_data_t * gpsdata, int timeout) +bool gps_waiting(const struct gps_data_t *gpsdata, int timeout) /* is there input waiting from the GPS? */ { #ifndef USE_QT @@ -467,7 +467,7 @@ int gps_unpack(char *buf, struct gps_data_t *gpsdata) } /*@ +compdef @*/ -const char /*@observer@*/ *gps_data(struct gps_data_t *gpsdata) +const char /*@observer@*/ *gps_data(const struct gps_data_t *gpsdata) /* return the contents of the client data buffer */ { return PRIVATE(gpsdata)->buffer; |