summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2009-03-10 03:42:46 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2009-03-10 03:42:46 +0000
commit3f17d9037b15f0eeb1166e0d3448737f81e26a79 (patch)
treea6fd6e3c03817d303214ae21f36c5f54824000fe /gpsd.c
parentd43e0891b462c9280352239676e10a06b0632603 (diff)
downloadgpsd-3f17d9037b15f0eeb1166e0d3448737f81e26a79.tar.gz
fix some sign warnings
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpsd.c b/gpsd.c
index abd96d75..9bc790b8 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -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);