diff --git a/src/term.c b/src/term.c index 4001b087..c0fe33db 100644 --- a/src/term.c +++ b/src/term.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -1083,8 +1084,8 @@ static int cmd_quell(PROGRAMMER *pgm, AVRPART *p, int argc, char *argv[]) { return 0; } -static int tokenize(char *s, char ***argv) { - int i, n, l, k, nargs, offset; +static int tokenize(char * s, char ***argv) { + int i, n, l, nargs; int len, slen; char *buf; int bufsize; @@ -1145,7 +1146,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