From 09b73000c21d7c50f34945699f938361b622d302 Mon Sep 17 00:00:00 2001 From: Marc Olzheim Date: Fri, 17 Dec 2004 15:39:28 +0000 Subject: [PATCH] "(turn): Fix comparing the output of write() to an unsigned sizeof by casting the sizeof to write's most used return-type (ssize_t). Introduce a typedef for ssize_t for WIN32." --- src/lib/commands/turn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/turn.c b/src/lib/commands/turn.c index 4344b983..d731c5cd 100644 --- a/src/lib/commands/turn.c +++ b/src/lib/commands/turn.c @@ -115,7 +115,7 @@ turn(void) if (msgfilepath == downfil) pr("Logins disabled.\n"); - if ((write(fd, &tgm, sizeof(tgm)) < sizeof(tgm)) || + if ((write(fd, &tgm, sizeof(tgm)) < (ssize_t)sizeof(tgm)) || (write(fd, buf, tgm.tel_length) < tgm.tel_length) || (close(fd) == -1)) {