mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-17 02:54:17 +00:00
Eliminate compiler warnings. GCC 4.x elicits many signedness warnings
when passing unsigned char * when char * is in the prototype and vice versa. Clean these up along with a few others. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@491 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -173,7 +173,7 @@ static int stk500v2_recv(PROGRAMMER * pgm, unsigned char msg[], size_t maxsize)
|
||||
if (curlen < maxsize) {
|
||||
msg[curlen] = c;
|
||||
} else {
|
||||
fprintf(stderr, "%s: stk500v2_recv(): buffer too small, received %d byte into %d byte buffer\n",
|
||||
fprintf(stderr, "%s: stk500v2_recv(): buffer too small, received %d byte into %zd byte buffer\n",
|
||||
progname,curlen,maxsize);
|
||||
return -2;
|
||||
}
|
||||
@@ -271,7 +271,7 @@ retry:
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int stk500v2_command(PROGRAMMER * pgm, char * buf, size_t len, size_t maxlen) {
|
||||
static int stk500v2_command(PROGRAMMER * pgm, unsigned char * buf, size_t len, size_t maxlen) {
|
||||
int i;
|
||||
int tries = 0;
|
||||
int status;
|
||||
|
||||
Reference in New Issue
Block a user