summaryrefslogtreecommitdiffstats
path: root/usr.sbin/yppush
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/yppush
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/yppush')
-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 12a9145..dedfaa7 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;
OpenPOWER on IntegriCloud