mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-13 09:24:55 +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:
10
ser_posix.c
10
ser_posix.c
@@ -167,14 +167,13 @@ static void ser_close(int fd)
|
||||
}
|
||||
|
||||
|
||||
static int ser_send(int fd, char * buf, size_t buflen)
|
||||
static int ser_send(int fd, unsigned char * buf, size_t buflen)
|
||||
{
|
||||
struct timeval timeout, to2;
|
||||
fd_set wfds;
|
||||
int nfds;
|
||||
int rc;
|
||||
|
||||
char * p = buf;
|
||||
unsigned char * p = buf;
|
||||
size_t len = buflen;
|
||||
|
||||
if (!len)
|
||||
@@ -243,14 +242,13 @@ static int ser_send(int fd, char * buf, size_t buflen)
|
||||
}
|
||||
|
||||
|
||||
static int ser_recv(int fd, char * buf, size_t buflen)
|
||||
static int ser_recv(int fd, unsigned char * buf, size_t buflen)
|
||||
{
|
||||
struct timeval timeout, to2;
|
||||
fd_set rfds;
|
||||
int nfds;
|
||||
int rc;
|
||||
|
||||
char * p = buf;
|
||||
unsigned char * p = buf;
|
||||
size_t len = 0;
|
||||
|
||||
timeout.tv_sec = serial_recv_timeout / 1000L;
|
||||
|
||||
Reference in New Issue
Block a user