Skip to content

Commit 4d527c7

Browse files
committed
socket: Use const void* instead of void* in signature of socket_send()
1 parent aef2bf0 commit 4d527c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/libimobiledevice-glue/socket.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ LIMD_GLUE_API int socket_close(int fd);
6363
LIMD_GLUE_API int socket_receive(int fd, void *data, size_t length);
6464
LIMD_GLUE_API int socket_peek(int fd, void *data, size_t length);
6565
LIMD_GLUE_API int socket_receive_timeout(int fd, void *data, size_t length, int flags, unsigned int timeout);
66-
LIMD_GLUE_API int socket_send(int fd, void *data, size_t length);
66+
LIMD_GLUE_API int socket_send(int fd, const void *data, size_t length);
6767

6868
LIMD_GLUE_API int socket_get_socket_port(int fd, uint16_t *port);
6969

src/socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ int socket_receive_timeout(int fd, void *data, size_t length, int flags, unsigne
14131413
return result;
14141414
}
14151415

1416-
int socket_send(int fd, void *data, size_t length)
1416+
int socket_send(int fd, const void *data, size_t length)
14171417
{
14181418
int flags = 0;
14191419
int res = socket_check_fd(fd, FDM_WRITE, SEND_TIMEOUT);

0 commit comments

Comments
 (0)