diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2009-03-10 03:42:46 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2009-03-10 03:42:46 +0000 |
commit | 3f17d9037b15f0eeb1166e0d3448737f81e26a79 (patch) | |
tree | a6fd6e3c03817d303214ae21f36c5f54824000fe /gpsd.c | |
parent | d43e0891b462c9280352239676e10a06b0632603 (diff) | |
download | gpsd-3f17d9037b15f0eeb1166e0d3448737f81e26a79.tar.gz |
fix some sign warnings
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1322,7 +1322,7 @@ static void handle_control(int sfd, char *buf) } } } else if (buf[0] == '&') { - size_t len; + ssize_t len; p = snarfline(buf+1, &stash); eq = strchr(stash, '='); if (eq == NULL) { @@ -1333,9 +1333,9 @@ static void handle_control(int sfd, char *buf) len = strlen(eq)+5; if ((chp = find_device(stash)) != NULL) { /* NOTE: this destroys the original buffer contents */ - len = (size_t)gpsd_hexpack(eq, eq, len); + len = (ssize_t)gpsd_hexpack(eq, eq, len); if (len < 0) - gpsd_report(LOG_INF,"<= control(%d): invalid hex string (error %ld)\n", sfd, len); + gpsd_report(LOG_INF,"<= control(%d): invalid hex string (error %zd)\n", sfd, len); else { gpsd_report(LOG_INF,"<= control(%d): writing fromhex(%s) to %s\n", sfd, eq, stash); |