socket: change SCK_Send() declaration to const buffer

This commit is contained in:
Miroslav Lichvar 2019-11-19 10:42:23 +01:00
parent dfc2f70876
commit 2bf1ba22f2
2 changed files with 2 additions and 2 deletions

View file

@ -1336,7 +1336,7 @@ SCK_Receive(int sock_fd, void *buffer, unsigned int length, int flags)
/* ================================================== */
int
SCK_Send(int sock_fd, void *buffer, unsigned int length, int flags)
SCK_Send(int sock_fd, const void *buffer, unsigned int length, int flags)
{
int r;

View file

@ -114,7 +114,7 @@ extern int SCK_ShutdownConnection(int sock_fd);
/* Receive and send data on connected sockets - recv()/send() wrappers */
extern int SCK_Receive(int sock_fd, void *buffer, unsigned int length, int flags);
extern int SCK_Send(int sock_fd, void *buffer, unsigned int length, int flags);
extern int SCK_Send(int sock_fd, const void *buffer, unsigned int length, int flags);
/* Receive a single message or multiple messages. The functions return the
number of received messages, or 0 on error. The returned data point to