From 9a36a8340f897dd7c1d1dfb6e871c5d456f59a96 Mon Sep 17 00:00:00 2001 From: mycroft Date: Fri, 20 Sep 2002 19:13:24 +0000 Subject: [PATCH] Use the argument to stilloob() for the poll... --- libexec/telnetd/utility.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libexec/telnetd/utility.c b/libexec/telnetd/utility.c index 945728472582..7dd9f7ac7955 100644 --- a/libexec/telnetd/utility.c +++ b/libexec/telnetd/utility.c @@ -1,4 +1,4 @@ -/* $NetBSD: utility.c,v 1.20 2002/09/18 20:58:57 mycroft Exp $ */ +/* $NetBSD: utility.c,v 1.21 2002/09/20 19:13:24 mycroft Exp $ */ /* * Copyright (c) 1989, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)utility.c 8.4 (Berkeley) 5/30/95"; #else -__RCSID("$NetBSD: utility.c,v 1.20 2002/09/18 20:58:57 mycroft Exp $"); +__RCSID("$NetBSD: utility.c,v 1.21 2002/09/20 19:13:24 mycroft Exp $"); #endif #endif /* not lint */ @@ -99,14 +99,14 @@ stilloob(s) struct pollfd set[1]; int value; - set[0].fd = net; + set[0].fd = s; set[0].events = POLLPRI; do { value = poll(set, 1, 0); } while ((value == -1) && (errno == EINTR)); if (value < 0) { - fatalperror(pty, "select"); + fatalperror(pty, "poll"); } if (set[0].revents & POLLPRI) { return 1;