In net module also set buf type to void in net_send().
This commit is contained in:
parent
297d3c95c3
commit
e3e0404d23
@ -113,7 +113,7 @@ bool net_set_timeout(net_t *const n, int usec) {
|
||||
return true;
|
||||
}
|
||||
|
||||
ssize_t net_send(const net_t *const n, const char *const buf, const size_t buf_len) {
|
||||
ssize_t net_send(const net_t *const n, const void *const buf, const size_t buf_len) {
|
||||
if (n->fd == -1 || n->raddr.sa_family == AF_UNSPEC)
|
||||
return -1;
|
||||
|
||||
|
@ -16,7 +16,7 @@ void net_destroy(net_t *n);
|
||||
|
||||
bool net_set_timeout(net_t *const n, int usec);
|
||||
|
||||
ssize_t net_send(const net_t *const n, const char *const buf, const size_t buf_len);
|
||||
ssize_t net_send(const net_t *const n, const void *const buf, const size_t buf_len);
|
||||
ssize_t net_recv(net_t *const n, void *const buf, const size_t buf_len);
|
||||
|
||||
#endif /* _NET_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user