diff options
author | imp <imp@FreeBSD.org> | 1997-03-28 15:48:21 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1997-03-28 15:48:21 +0000 |
commit | 3125d931c2865b48cb5780a22e277701803212c6 (patch) | |
tree | 5fe9e887ce5fdacb7324ecf172d3dc7bbd561532 /libexec/rlogind | |
parent | 054f35c2222ef251bc2877814cf7bf5ff6038166 (diff) | |
download | FreeBSD-src-3125d931c2865b48cb5780a22e277701803212c6.zip FreeBSD-src-3125d931c2865b48cb5780a22e277701803212c6.tar.gz |
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Diffstat (limited to 'libexec/rlogind')
-rw-r--r-- | libexec/rlogind/rlogind.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c index 3edba3c..97ba074 100644 --- a/libexec/rlogind/rlogind.c +++ b/libexec/rlogind/rlogind.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: rlogind.c,v 1.15 1997/02/22 14:22:08 peter Exp $ + * $Id: rlogind.c,v 1.16 1997/03/24 06:01:39 imp Exp $ */ #ifndef lint @@ -133,7 +133,7 @@ main(argc, argv) openlog("rlogind", LOG_PID | LOG_CONS, LOG_AUTH); opterr = 0; - while ((ch = getopt(argc, argv, ARGSTR)) != EOF) + while ((ch = getopt(argc, argv, ARGSTR)) != -1) switch (ch) { case 'D': no_delay = 1; |