diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-08-31 11:18:29 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-08-31 11:18:29 +0000 |
commit | 3bbe1283da2e32d148de5c51026b99841a15e549 (patch) | |
tree | d95727ef106dc52fe0eccd3b6922a2f4ffb729e8 /gps_json.h | |
parent | 74b94b749fa25719bd0624597c458f748d6258f3 (diff) | |
download | gpsd-3bbe1283da2e32d148de5c51026b99841a15e549.tar.gz |
Fix calls to json_stringify to not rely on static storage.
Diffstat (limited to 'gps_json.h')
-rw-r--r-- | gps_json.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5,10 +5,10 @@ #define GPS_JSON_COMMAND_MAX 80 #define GPS_JSON_RESPONSE_MAX 1024 -char *json_stringify(char *); +char *json_stringify(/*@out@*/char *, size_t, /*@in@*/const char *); int json_watch_read(const char *, struct policy_t *, const char **); int json_device_read(const char *, struct devconfig_t *, const char **); -void json_version_dump(char *reply, size_t replylen); +void json_version_dump(char *, size_t); void json_tpv_dump(struct gps_data_t *, struct gps_fix_t *, char *, size_t); void json_sky_dump(struct gps_data_t *, char *, size_t); void json_device_dump(struct gps_device_t *, char *, size_t); |