From db272949cf8ac5fc7dd8e1dc21413e9d96a2ba6a Mon Sep 17 00:00:00 2001 From: naddy Date: Tue, 2 Jul 2002 10:51:09 +0000 Subject: LP64 cleanup: don't cast pointer to int. --- usr.sbin/atm/atmarpd/atmarpd.c | 3 +-- usr.sbin/atm/scspd/scspd.c | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'usr.sbin') 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); } diff --git a/usr.sbin/atm/scspd/scspd.c b/usr.sbin/atm/scspd/scspd.c index a6f03f3..fbbf75d 100644 --- a/usr.sbin/atm/scspd/scspd.c +++ b/usr.sbin/atm/scspd/scspd.c @@ -319,14 +319,12 @@ daemon_bypass: /* * Set up signal handlers */ - rc = (int)signal(SIGHUP, scsp_sighup); - if (rc == -1) { + if (signal(SIGHUP, scsp_sighup) == SIG_ERR) { scsp_log(LOG_ERR, "SIGHUP signal setup failed"); exit(1); } - rc = (int)signal(SIGINT, scsp_sigint); - if (rc == -1) { + if (signal(SIGINT, scsp_sigint) == SIG_ERR) { scsp_log(LOG_ERR, "SIGINT signal setup failed"); exit(1); } -- cgit v1.1