Remove warning about GNU void* extension

This commit is contained in:
Mathieu Malaterre 2011-12-16 10:18:12 +00:00
parent 3ebdd674d8
commit abf9809c22
1 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ SOCKET accept_socket( SOCKET listening_socket)
void send_stream( SOCKET connected_socket, void *stream, int length)
{
void *ptr = stream;
char *ptr = (char*)stream;
int remlen = length;
while( remlen > 0){
@ -115,7 +115,7 @@ void send_stream( SOCKET connected_socket, void *stream, int length)
void * receive_stream( SOCKET connected_socket, int length)
{
void *stream, *ptr;
char *stream, *ptr;
int remlen, redlen;
ptr = stream = malloc( length);