"(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."
This commit is contained in:
parent
0ad644b11b
commit
09b73000c2
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ turn(void)
|
||||||
if (msgfilepath == downfil)
|
if (msgfilepath == downfil)
|
||||||
pr("Logins disabled.\n");
|
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) ||
|
(write(fd, buf, tgm.tel_length) < tgm.tel_length) ||
|
||||||
(close(fd) == -1))
|
(close(fd) == -1))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue