mirror of
https://git.busybox.net/udhcp
synced 2025-05-08 22:09:45 +08:00
fix potential problem (if sizeof(int) != sizeof(void *))
This commit is contained in:
parent
7cd05f4e61
commit
8f79eac98a
2
dhcpc.c
2
dhcpc.c
@ -534,7 +534,7 @@ int main(int argc, char *argv[])
|
|||||||
/* case BOUND, RELEASED: - ignore all packets */
|
/* case BOUND, RELEASED: - ignore all packets */
|
||||||
}
|
}
|
||||||
} else if (retval > 0 && FD_ISSET(signal_pipe[0], &rfds)) {
|
} else if (retval > 0 && FD_ISSET(signal_pipe[0], &rfds)) {
|
||||||
if (read(signal_pipe[0], &sig, sizeof(signal)) < 0) {
|
if (read(signal_pipe[0], &sig, sizeof(sig)) < 0) {
|
||||||
DEBUG(LOG_ERR, "Could not read signal: %s",
|
DEBUG(LOG_ERR, "Could not read signal: %s",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
continue; /* probably just EINTR */
|
continue; /* probably just EINTR */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user