mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-12 09:50:29 +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;
|
||||
|
||||
do {
|
||||
ret = read(fd, &sig, sizeof(sig));
|
||||
ret = (int)read(fd, &sig, sizeof(sig));
|
||||
if (ret == sizeof(int))
|
||||
Signal_Handler_BH(sig);
|
||||
} while (ret == sizeof(int));
|
||||
|
Loading…
Reference in New Issue
Block a user