diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2004-03-20 04:28:52 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2004-03-20 04:28:52 +0000 |
commit | 951a36162c4526b106eb502e53c91d52de519f6e (patch) | |
tree | db7e0a4e945e66da0c69ebc7cec5c95a4117fca1 /usr.bin | |
parent | dca02c171df624e3853acc66ec599b500660fed1 (diff) |
Fix bad errno check. deraadt@ ok
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tn3270/sys_curses/system.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tn3270/sys_curses/system.c b/usr.bin/tn3270/sys_curses/system.c index 858b8c0e7db..a2e33606d1b 100644 --- a/usr.bin/tn3270/sys_curses/system.c +++ b/usr.bin/tn3270/sys_curses/system.c @@ -1,4 +1,4 @@ -/* $OpenBSD: system.c,v 1.16 2003/10/22 23:05:11 tedu Exp $ */ +/* $OpenBSD: system.c,v 1.17 2004/03/20 04:28:51 aaron Exp $ */ /*- * Copyright (c) 1988 The Regents of the University of California. @@ -31,7 +31,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)system.c 4.5 (Berkeley) 4/26/91";*/ -static char rcsid[] = "$OpenBSD: system.c,v 1.16 2003/10/22 23:05:11 tedu Exp $"; +static char rcsid[] = "$OpenBSD: system.c,v 1.17 2004/03/20 04:28:51 aaron Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -471,7 +471,7 @@ doconnect() FD_SET(serversock, &fdset); if ((i = select(serversock+1, &fdset, (fd_set *)0, (fd_set *)0, (struct timeval *)0)) < 0) { - if (errno = EINTR) { + if (errno == EINTR) { continue; } else { perror("in select waiting for API connection"); |