summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-03-31 04:46:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-03-31 04:46:10 +0000
commita35cbd3fe4157d142777bae4103fef4e8262b0a8 (patch)
tree8339277610d128850e2667362d9c3ce6a4c97d85
parentf0cad710c541ecf3829ef6b586b8bbfa60fbf8a1 (diff)
oldmask = sigprocmask(SIG_BLOCK, &mask, &oldmask);
is not valid code; found by lint
-rw-r--r--lib/libc/net/rcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c
index d211f404a2b..e2b91994920 100644
--- a/lib/libc/net/rcmd.c
+++ b/lib/libc/net/rcmd.c
@@ -119,7 +119,7 @@ rcmd_af(char **ahost, int porta, const char *locuser, const char *remuser,
refused = 0;
sigemptyset(&mask);
sigaddset(&mask, SIGURG);
- oldmask = sigprocmask(SIG_BLOCK, &mask, &oldmask);
+ sigprocmask(SIG_BLOCK, &mask, &oldmask);
for (timo = 1, lport = IPPORT_RESERVED - 1;;) {
s = rresvport_af(&lport, r->ai_family);
if (s < 0) {