diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-08-04 08:54:18 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-08-04 08:54:18 (GMT) |
commit | dd2853ea8cf97b773ba362da50d06d4abc608a09 (patch) | |
tree | 1aade30c8d2f10d606daf841da4590dc48aea188 /src/common/io.c | |
parent | b8c868d42b0788bc6e41f3e8368d507f0d338687 (diff) |
Fixed the prototype for receiving data from network.
Diffstat (limited to 'src/common/io.c')
-rw-r--r-- | src/common/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/io.c b/src/common/io.c index cfc6b80..2a68649 100644 --- a/src/common/io.c +++ b/src/common/io.c @@ -212,13 +212,13 @@ bool safe_write(int fd, const void *buf, size_t count) * * ******************************************************************************/ -bool safe_recv(int sockfd, const void *buf, size_t len, int flags) +bool safe_recv(int sockfd, void *buf, size_t len, int flags) { uint8_t *iter; /* Données en attente */ size_t remaining; /* Quantité restante */ ssize_t got; /* Données envoyées */ - iter = (uint8_t *)buf; + iter = buf; remaining = len; while (remaining > 0) |