diff options
author | Mattias Andrée <maandree@kth.se> | 2021-12-10 21:28:49 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-12-10 21:28:49 +0100 |
commit | ee22267ae381eb3274aff3a6c6d1b0ab6efe53d2 (patch) | |
tree | fd2cd355db5022a2df4b47d56e6326736bf88046 /recv.c | |
parent | Add liberror_setenv_failed (diff) | |
download | liberror-libc-ee22267ae381eb3274aff3a6c6d1b0ab6efe53d2.tar.gz liberror-libc-ee22267ae381eb3274aff3a6c6d1b0ab6efe53d2.tar.bz2 liberror-libc-ee22267ae381eb3274aff3a6c6d1b0ab6efe53d2.tar.xz |
Fix warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'recv.c')
-rw-r--r-- | recv.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -109,6 +109,9 @@ liberror_recv_failed(int fd, void *buf, size_t n, int flags, const char *fname) break; } liberror_libc_set_error_one_file(desc, "recv", "Socket file", fd, fname); + (void) buf; + (void) n; + (void) flags; } @@ -121,7 +124,7 @@ liberror_recv_short(int fd, void *buf, size_t n, int flags, size_t min, size_t m liberror_save_backtrace(NULL); if (returned < 0 || (size_t)returned < min) { desc = "Received message was shorter than expected"; - } else if (returned > max) { + } else if ((size_t) returned > max) { desc = "Received message was larger than expected"; } else { desc = "Received message was of an unexpected size"; @@ -133,6 +136,9 @@ liberror_recv_short(int fd, void *buf, size_t n, int flags, size_t min, size_t m error->details.one_file.name = fname ? strdup(fname) : NULL; error->details.one_file.role = "Socket file"; errno = saved_errno; + (void) buf; + (void) n; + (void) flags; } |