summaryrefslogtreecommitdiffstats
path: root/usr.sbin/atm/atmarpd/atmarpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/atm/atmarpd/atmarpd.c')
-rw-r--r--usr.sbin/atm/atmarpd/atmarpd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/atm/atmarpd/atmarpd.c b/usr.sbin/atm/atmarpd/atmarpd.c
index d221a59..2990665 100644
--- a/usr.sbin/atm/atmarpd/atmarpd.c
+++ b/usr.sbin/atm/atmarpd/atmarpd.c
@@ -294,8 +294,7 @@ daemon_bypass:
/*
* Set up signal handlers
*/
- rc = (int)signal(SIGINT, atmarp_sigint);
- if (rc == -1) {
+ if (signal(SIGINT, atmarp_sigint) == SIG_ERR) {
atmarp_log(LOG_ERR, "SIGINT signal setup failed");
exit(1);
}
OpenPOWER on IntegriCloud