Date: Thu, 12 Feb 2009 19:32:52 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/gen getttyent.c Message-ID: <200902121933.n1CJX1Sn099159@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ed 2009-02-12 19:32:52 UTC
FreeBSD src repository
Modified files:
lib/libc/gen getttyent.c
Log:
SVN rev 188536 on 2009-02-12 19:32:52Z by ed
Properly invalidate highest pts number when calling setttyent().
When calling setttyent() after calling endttyent(), pts_valid will never
be set to 1, because the readdir()-loop will likely never vind a pts
that has a higher number than before.
Simplify the code by removing pts_valid. We'll just set maxpts to -1
when we don't have a valid count yet.
Revision Changes Path
1.18 +4 -5 src/lib/libc/gen/getttyent.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902121933.n1CJX1Sn099159>
