summaryrefslogtreecommitdiffstats
path: root/libexec/rshd/rshd.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-03-28 15:48:21 +0000
committerimp <imp@FreeBSD.org>1997-03-28 15:48:21 +0000
commit3125d931c2865b48cb5780a22e277701803212c6 (patch)
tree5fe9e887ce5fdacb7324ecf172d3dc7bbd561532 /libexec/rshd/rshd.c
parent054f35c2222ef251bc2877814cf7bf5ff6038166 (diff)
downloadFreeBSD-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/rshd/rshd.c')
-rw-r--r--libexec/rshd/rshd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c
index 71d4650..2e95a77 100644
--- a/libexec/rshd/rshd.c
+++ b/libexec/rshd/rshd.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: rshd.c,v 1.13 1997/02/22 14:22:23 peter Exp $
*/
#ifndef lint
@@ -112,7 +112,7 @@ main(argc, argv)
openlog("rshd", LOG_PID | LOG_ODELAY, LOG_DAEMON);
opterr = 0;
- while ((ch = getopt(argc, argv, OPTIONS)) != EOF)
+ while ((ch = getopt(argc, argv, OPTIONS)) != -1)
switch (ch) {
case 'a':
check_all = 1;
OpenPOWER on IntegriCloud