socket: change SCK_Send() declaration to const buffer
This commit is contained in:
parent
dfc2f70876
commit
2bf1ba22f2
2 changed files with 2 additions and 2 deletions
2
socket.c
2
socket.c
|
@ -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;
|
||||
|
||||
|
|
2
socket.h
2
socket.h
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue