1
0

In net module also set buf type to void in net_send().

This commit is contained in:
Alexander Andreev 2024-11-20 23:38:52 +04:00
parent 297d3c95c3
commit e3e0404d23
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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_ */