Skip to content

Commit 8698808

Browse files
committed
raw-socket: Fix function prototypes
Change-Id: Ia80d56a1f531ffa6e41c9518e615ab8158ed7009 Signed-off-by: Ajay Bhargav <[email protected]>
1 parent a85aaf8 commit 8698808

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/siwi/sockets.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ struct socket_callback_t {
7676
* @param len Length of data
7777
* @return Always return 0, return value is unused
7878
*/
79-
int (*recv_callback)(int sockid, const unsigned char *buf, int len);
79+
int (*recv_callback)(int sockid, const void *buf, int len);
8080
/**
8181
* Socket transmit callback
8282
* @param sockid Socket ID
@@ -86,7 +86,7 @@ struct socket_callback_t {
8686
* @param arg user argument passed during send
8787
* @return Always return 0, return value is unused
8888
*/
89-
int (*xmit_callback)(int sockid, int result, unsigned char *buf, int len, void *arg);
89+
int (*xmit_callback)(int sockid, int result, const void *buf, int len, void *arg);
9090
};
9191

9292
/**
@@ -166,7 +166,7 @@ int socket_close(int id);
166166
* @param arg [in] User data argument, This argument will be passed to transmit callback function
167167
* @return 0 on success, negative value on error
168168
*/
169-
int socket_send(int id, const unsigned char *buf, int len, int timeout, void *arg);
169+
int socket_send(int id, const void *buf, int len, int timeout, void *arg);
170170

171171
/**
172172
* Get socket status

0 commit comments

Comments
 (0)