summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-03 17:44:48 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-03 17:44:48 +0000
commit64f01a730ebb21fc209fc7c153d6cbe44ab814bf (patch)
tree57a22053461015a380b76fdc3e0bd04bc8d9b9f7
parent8e38829079d10a998af9021992bd64fa6c2733d2 (diff)
use SIG_ERR
-rw-r--r--libexec/ftpd/ftpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index ef490c916b0..07ef4d8ea78 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftpd.c,v 1.45 1997/12/12 08:55:09 deraadt Exp $ */
+/* $OpenBSD: ftpd.c,v 1.46 1998/06/03 17:44:47 deraadt Exp $ */
/* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */
/*
@@ -419,7 +419,7 @@ main(argc, argv, envp)
(void) signal(SIGTERM, sigquit);
(void) signal(SIGPIPE, lostconn);
(void) signal(SIGCHLD, SIG_IGN);
- if ((long)signal(SIGURG, myoob) < 0)
+ if (signal(SIGURG, myoob) == SIG_ERR)
syslog(LOG_ERR, "signal: %m");
addrlen = sizeof(ctrl_addr);