mirror of
https://github.com/osmarks/ngircd.git
synced 2025-05-05 08:54:06 +00:00
Explicitly cast return value of read(2) to "int"
This fixes the following gcc warning, emitted by Xcode: src/ngircd/sighandlers.c: In function 'Signal_Callback': src/ngircd/sighandlers.c:239: warning: implicit conversion shortens 64-bit value into a 32-bit value
This commit is contained in:
parent
b1a117cd98
commit
e2ba7e08b4
@ -236,7 +236,7 @@ Signal_Callback(int fd, short UNUSED what)
|
|||||||
(void) what;
|
(void) what;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
ret = read(fd, &sig, sizeof(sig));
|
ret = (int)read(fd, &sig, sizeof(sig));
|
||||||
if (ret == sizeof(int))
|
if (ret == sizeof(int))
|
||||||
Signal_Handler_BH(sig);
|
Signal_Handler_BH(sig);
|
||||||
} while (ret == sizeof(int));
|
} while (ret == sizeof(int));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user