Properly declare arg #2 of net_send() (in ser_win32.c) as being a pointer

to const data.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1353 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
joerg_wunsch 2014-11-26 09:38:15 +00:00
parent f7c2be435b
commit 71b6c3439a
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2014-11-26 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
* ser_win32.c (net_send): Properly declare argument 2 as being a
pointer to const data.
2014-11-25 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
patch #8380: adds 500k 1M 2M baud to ser_posix.c

View File

@ -339,11 +339,11 @@ static int ser_set_dtr_rts(union filedescriptor *fd, int is_on)
}
#ifdef HAVE_LIBWS2_32
static int net_send(union filedescriptor *fd, unsigned char * buf, size_t buflen)
static int net_send(union filedescriptor *fd, const unsigned char * buf, size_t buflen)
{
LPVOID lpMsgBuf;
int rc;
unsigned char *p = buf;
const unsigned char *p = buf;
size_t len = buflen;
if (fd->ifd < 0) {