summaryrefslogtreecommitdiff
path: root/contrib/motosend.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-02-16 22:34:15 +0000
committerEric S. Raymond <esr@thyrsus.com>2010-02-16 22:34:15 +0000
commita2222107e18e00e140eee2a5dbb993881af90d3c (patch)
tree0444e4b364eebcce6e03d946cddc1915cedb6d56 /contrib/motosend.c
parent82c32b4df47bc325eb3df6959204070a0288fed2 (diff)
downloadgpsd-a2222107e18e00e140eee2a5dbb993881af90d3c.tar.gz
Integrated cppcheck testing, and fixed some minor bugs found by it.
Diffstat (limited to 'contrib/motosend.c')
-rw-r--r--contrib/motosend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/motosend.c b/contrib/motosend.c
index e990338d..351d2dcc 100644
--- a/contrib/motosend.c
+++ b/contrib/motosend.c
@@ -113,7 +113,7 @@ char moto_gen_checksum(char *buf, int len){
static int moto_send(int fd, char *type, char *body ) {
size_t status;
char *buf;
- unsigned short l, n, ck;
+ unsigned short l, ck;
l = strlen(body) / 2;
if ((buf = malloc(l+7)) == NULL)