Remove warning about GNU void* extension
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Fri, 16 Dec 2011 10:18:12 +0000 (10:18 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Fri, 16 Dec 2011 10:18:12 +0000 (10:18 +0000)
applications/jpip/libopenjpip/sock_manager.c

index b84bc981118d6d9b18d986a6759cfdcd9f8abc00..f53b9fdbf8f39b5e7575f6b9b9181af4e2d6c43e 100644 (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);