[C++/mingw] ser-tcp.c casts
authorPedro Alves <palves@redhat.com>
Tue, 17 Nov 2015 15:17:45 +0000 (15:17 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 17 Nov 2015 15:20:03 +0000 (15:20 +0000)
commit69e976f8cc902adc5ee8aec24e4a208f4afd51b3
treed3817f643cfdc21038d23bec2da966e066ad4238
parentc3de4d92dfd0a1fa8d32a00bbb99de2a4ee0e140
[C++/mingw] ser-tcp.c casts

Fixes a few errors like these:

../../src/gdb/ser-tcp.c: In function 'int net_open(serial*, const char*)':
../../src/gdb/ser-tcp.c:286:73: error: invalid conversion from 'void*' to 'char*' [-fpermissive]
     res = getsockopt (scb->fd, SOL_SOCKET, SO_ERROR, (void *) &err, &len);
                                                                         ^

gdb/ChangeLog:
2015-11-17  Pedro Alves  <palves@redhat.com>

* ser-tcp.c (net_open) : Cast getsockopt argument to char *
instead of void *.  Update comment.
(net_read_prim): Cast recv argument to char * instead of void *.
(net_write_prim): Cast send argument to char *.  Add comment.
gdb/ChangeLog
gdb/ser-tcp.c