summaryrefslogtreecommitdiffstats
path: root/usr.sbin/yp_mkdb
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-03-31 05:11:47 +0000
committerimp <imp@FreeBSD.org>1997-03-31 05:11:47 +0000
commit691010efad5c05f7ee86a870abce217fe8e9b8d1 (patch)
treeb28e04577780319990238a98e7549582e44d9d51 /usr.sbin/yp_mkdb
parent3d7b78ed8c2fd06816b04ddcb57d58281409aa62 (diff)
downloadFreeBSD-src-691010efad5c05f7ee86a870abce217fe8e9b8d1.zip
FreeBSD-src-691010efad5c05f7ee86a870abce217fe8e9b8d1.tar.gz
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Diffstat (limited to 'usr.sbin/yp_mkdb')
-rw-r--r--usr.sbin/yp_mkdb/yp_mkdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/yp_mkdb/yp_mkdb.c b/usr.sbin/yp_mkdb/yp_mkdb.c
index 89b0377..0ce8b58 100644
--- a/usr.sbin/yp_mkdb/yp_mkdb.c
+++ b/usr.sbin/yp_mkdb/yp_mkdb.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: yp_mkdb.c,v 1.6 1997/02/22 16:14:50 peter Exp $
*/
#include <stdio.h>
@@ -50,7 +50,7 @@
#include "ypxfr_extern.h"
#ifndef lint
-static const char rcsid[] = "$Id$";
+static const char rcsid[] = "$Id: yp_mkdb.c,v 1.6 1997/02/22 16:14:50 peter Exp $";
#endif
char *yp_dir = ""; /* No particular default needed. */
@@ -121,7 +121,7 @@ main (argc, argv)
FILE *ifp;
char hname[MAXHOSTNAMELEN + 2];
- while ((ch = getopt(argc, argv, "uhcbsd:i:o:m:")) != EOF) {
+ while ((ch = getopt(argc, argv, "uhcbsd:i:o:m:")) != -1) {
switch(ch) {
case 'u':
un++;
OpenPOWER on IntegriCloud