summaryrefslogtreecommitdiffstats
path: root/libexec/ypxfr
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/ypxfr
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/ypxfr')
-rw-r--r--libexec/ypxfr/ypxfr_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ypxfr/ypxfr_main.c b/libexec/ypxfr/ypxfr_main.c
index 63e4b49..6e42c05 100644
--- a/libexec/ypxfr/ypxfr_main.c
+++ b/libexec/ypxfr/ypxfr_main.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: ypxfr_main.c,v 1.8 1997/02/22 14:22:48 peter Exp $
*/
#include <stdio.h>
#include <stdlib.h>
@@ -51,7 +51,7 @@ struct dom_binding {};
#include "ypxfr_extern.h"
#ifndef lint
-static const char rcsid[] = "$Id$";
+static const char rcsid[] = "$Id: ypxfr_main.c,v 1.8 1997/02/22 14:22:48 peter Exp $";
#endif
char *progname = "ypxfr";
@@ -176,7 +176,7 @@ main(argc,argv)
if (argc < 2)
usage();
- while ((ch = getopt(argc, argv, "fcd:h:s:p:C:")) != EOF) {
+ while ((ch = getopt(argc, argv, "fcd:h:s:p:C:")) != -1) {
int my_optind;
switch(ch) {
case 'f':
OpenPOWER on IntegriCloud