summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2002-07-02 10:51:09 +0000
committernaddy <naddy@FreeBSD.org>2002-07-02 10:51:09 +0000
commitdb272949cf8ac5fc7dd8e1dc21413e9d96a2ba6a (patch)
treeea9a90941d1512e8e13efcce6d11370657a75908 /usr.sbin
parent4f90d44b0dc59d506ef65ea2dc535c30106cd5cc (diff)
downloadFreeBSD-src-db272949cf8ac5fc7dd8e1dc21413e9d96a2ba6a.zip
FreeBSD-src-db272949cf8ac5fc7dd8e1dc21413e9d96a2ba6a.tar.gz
LP64 cleanup: don't cast pointer to int.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/atm/atmarpd/atmarpd.c3
-rw-r--r--usr.sbin/atm/scspd/scspd.c6
2 files changed, 3 insertions, 6 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);
}
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);
}
OpenPOWER on IntegriCloud