aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/yppush/yppush_main.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1997-03-31 05:11:47 +0000
committerWarner Losh <imp@FreeBSD.org>1997-03-31 05:11:47 +0000
commit6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc (patch)
tree9dcc58d3fb5e1644413565971c98196650ef87d3 /usr.sbin/yppush/yppush_main.c
parent44ee97a91b095311b8703857d54df336354236a0 (diff)
downloadsrc-6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc.tar.gz
src-6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc.zip
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Notes
Notes: svn path=/head/; revision=24428
Diffstat (limited to 'usr.sbin/yppush/yppush_main.c')
-rw-r--r--usr.sbin/yppush/yppush_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/yppush/yppush_main.c b/usr.sbin/yppush/yppush_main.c
index 12a9145dd005..dedfaa7cd3d2 100644
--- a/usr.sbin/yppush/yppush_main.c
+++ b/usr.sbin/yppush/yppush_main.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: yppush_main.c,v 1.7 1997/02/22 16:15:02 peter Exp $
*/
#include <stdio.h>
@@ -53,7 +53,7 @@ struct dom_binding {};
#include "yppush_extern.h"
#ifndef lint
-static const char rcsid[] = "$Id$";
+static const char rcsid[] = "$Id: yppush_main.c,v 1.7 1997/02/22 16:15:02 peter Exp $";
#endif
char *progname = "yppush";
@@ -544,7 +544,7 @@ main(argc,argv)
struct hostlist *tmp;
struct sigaction sa;
- while ((ch = getopt(argc, argv, "d:j:p:h:t:v")) != EOF) {
+ while ((ch = getopt(argc, argv, "d:j:p:h:t:v")) != -1) {
switch(ch) {
case 'd':
yppush_domain = optarg;