diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2000-10-08 02:57:00 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2000-10-08 02:57:00 +0000 |
commit | db6649888e7d3056f00257346e1148fdaa8f24f0 (patch) | |
tree | 008ee315ca4460ff0d33880c0d962f8e20c2865e | |
parent | 54b592ee0d6df4eb56800d47f9353f266395d81d (diff) |
better code.
-rw-r--r-- | kerberosIV/src/kadmin/admin_server.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/kerberosIV/src/kadmin/admin_server.c b/kerberosIV/src/kadmin/admin_server.c index c3aeef4f442..d7bb477c265 100644 --- a/kerberosIV/src/kadmin/admin_server.c +++ b/kerberosIV/src/kadmin/admin_server.c @@ -262,7 +262,6 @@ listen on the admin servers port for a request static int kadm_listen(void) { - int found; int admin_fd; int peer_fd; struct pollfd pfd[1]; @@ -296,7 +295,6 @@ kadm_listen(void) pfd[0].fd = admin_fd; pfd[0].events = POLLIN; - pfd[0].revents = 0; for (;;) { /* loop nearly forever */ if (exit_now) { @@ -304,11 +302,9 @@ kadm_listen(void) kill_children(); return(0); } - if ((found = poll(pfd, 1, -1)) == 0) - continue; /* no things read */ - if (found < 0) { + if (poll(pfd, 1, -1) < 0) { if (errno != EINTR) - krb_log("select: %s",error_message(errno)); + krb_log("poll: %s",error_message(errno)); continue; } if (pfd[0].revents & POLLIN) { |