Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
3d0d525c7da0d33b4f53547b90890a745d796f5a...edc4b07532032ee90152da25c2d653a184f17afe
Commits (1)
Make socket_send_buffer_t separate from socket_recv_buffer_t
· edc4b075
Deucе
authored
Feb 19, 2022
It seems we can't add a const to a typedef in a static_cast<>()
edc4b075
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/xpdev/sockwrap.h
src/xpdev/sockwrap.h
+4
-2
No files found.
src/xpdev/sockwrap.h
View file @
edc4b075
...
...
@@ -28,7 +28,8 @@
/* OS-specific */
/***************/
#if defined(_WIN32)
/* Use WinSock */
typedef
char
*
socket_buffer_t
;
typedef
const
char
*
socket_send_buffer_t
;
typedef
char
*
socket_recv_buffer_t
;
#ifndef _WINSOCKAPI_
#include <winsock2.h>
/* socket/bind/etc. */
...
...
@@ -51,7 +52,8 @@ typedef char* socket_buffer_t;
#endif
#elif defined __unix__
/* Unix-variant */
typedef
void
*
socket_buffer_t
;
typedef
const
void
*
socket_send_buffer_t
;
typedef
void
*
socket_recv_buffer_t
;
#include <netdb.h>
/* gethostbyname */
#include <sys/types.h>
/* For u_int32_t on FreeBSD */
...
...