diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2011-12-16 10:18:12 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2011-12-16 10:18:12 +0000 |
| commit | abf9809c2249b277f9ba13d79018d64a5ec8bfce (patch) | |
| tree | 5cb56088d61d6023d72e65735831e29294d45024 /applications | |
| parent | 3ebdd674d86d98ff94295da447ce04e28c987552 (diff) | |
Remove warning about GNU void* extension
Diffstat (limited to 'applications')
| -rw-r--r-- | applications/jpip/libopenjpip/sock_manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/jpip/libopenjpip/sock_manager.c b/applications/jpip/libopenjpip/sock_manager.c index b84bc981..f53b9fdb 100644 --- a/applications/jpip/libopenjpip/sock_manager.c +++ b/applications/jpip/libopenjpip/sock_manager.c @@ -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); |
