mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 14:35:27 +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:
@@ -295,7 +295,7 @@ static int jtagmkII_send(PROGRAMMER * pgm, unsigned char * data, size_t len)
|
||||
unsigned char *buf;
|
||||
|
||||
if (verbose >= 3)
|
||||
fprintf(stderr, "\n%s: jtagmkII_send(): sending %d bytes\n",
|
||||
fprintf(stderr, "\n%s: jtagmkII_send(): sending %zd bytes\n",
|
||||
progname, len);
|
||||
|
||||
if ((buf = malloc(len + 10)) == NULL)
|
||||
@@ -627,7 +627,7 @@ static int jtagmkII_getsync(PROGRAMMER * pgm) {
|
||||
#undef FWVER
|
||||
if (verbose >= 2)
|
||||
fprintf(stderr,
|
||||
"%s: jtagmkII_getsync(): Using a %u-byte device descriptor\n",
|
||||
"%s: jtagmkII_getsync(): Using a %zu-byte device descriptor\n",
|
||||
progname, device_descriptor_length);
|
||||
|
||||
/* Turn the ICE into JTAG mode */
|
||||
@@ -1698,7 +1698,7 @@ static int jtagmkII_setparm(PROGRAMMER * pgm, unsigned char parm,
|
||||
memcpy(buf + 2, value, size);
|
||||
if (verbose >= 2)
|
||||
fprintf(stderr, "%s: jtagmkII_setparm(): "
|
||||
"Sending set parameter command (parm 0x%02x, %u bytes): ",
|
||||
"Sending set parameter command (parm 0x%02x, %zu bytes): ",
|
||||
progname, parm, size);
|
||||
jtagmkII_send(pgm, buf, size + 2);
|
||||
|
||||
|
Reference in New Issue
Block a user