aboutsummaryrefslogtreecommitdiffstats
path: root/src/satd-diminished.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/satd-diminished.c')
-rw-r--r--src/satd-diminished.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/satd-diminished.c b/src/satd-diminished.c
index 4f490f2..f2e039f 100644
--- a/src/satd-diminished.c
+++ b/src/satd-diminished.c
@@ -150,7 +150,7 @@ accept_again:
close(fd), fd = CONN_FILENO;
}
peek_again:
- if (recv(fd, &type, (size_t)1, MSG_PEEK /* Just peek in case we fail! */) <= 0) {
+ if (recv(fd, &type, sizeof(char), MSG_PEEK /* Just peek in case we fail! */) <= 0) {
perror(argv[0]);
goto connection_done;
}