diff --git a/src/term.c b/src/term.c index 9c96d3b5..6aaab87f 100644 --- a/src/term.c +++ b/src/term.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -1147,7 +1148,7 @@ static int cmd_quell(PROGRAMMER * pgm, struct avrpart * p, static int tokenize(char * s, char *** argv) { - int i, n, l, k, nargs, offset; + int i, n, l, nargs; int len, slen; char * buf; int bufsize; @@ -1208,7 +1209,7 @@ static int tokenize(char * s, char *** argv) bufv = bufv_tmp; nbuf = &buf[l]; /* correct bufv pointers */ - k = buf - bufp; + ptrdiff_t k = buf - bufp; for (i=0; i