From dc0cdc96be9b1c8b76084e7bd7ce82024fb2c85d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 28 Dec 2015 18:04:43 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/satd-diminished.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2