summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.ypxfrd/ypxfrd_main.c
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/rpc.ypxfrd/ypxfrd_main.c
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/rpc.ypxfrd/ypxfrd_main.c')
-rw-r--r--usr.sbin/rpc.ypxfrd/ypxfrd_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rpc.ypxfrd/ypxfrd_main.c b/usr.sbin/rpc.ypxfrd/ypxfrd_main.c
index 7781ee1..126f338 100644
--- a/usr.sbin/rpc.ypxfrd/ypxfrd_main.c
+++ b/usr.sbin/rpc.ypxfrd/ypxfrd_main.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ypxfrd_main.c,v 1.3 1997/02/22 16:13:02 peter Exp $
+ * $Id: ypxfrd_main.c,v 1.4 1997/03/11 15:56:48 peter Exp $
*/
#include "ypxfrd.h"
@@ -61,7 +61,7 @@
#define _RPCSVC_CLOSEDOWN 120
#ifndef lint
-static const char rcsid[] = "$Id: ypxfrd_main.c,v 1.3 1997/02/22 16:13:02 peter Exp $";
+static const char rcsid[] = "$Id: ypxfrd_main.c,v 1.4 1997/03/11 15:56:48 peter Exp $";
#endif /* not lint */
int _rpcpmstart; /* Started by a port monitor ? */
static int _rpcfdtype;
@@ -192,7 +192,7 @@ main(argc, argv)
int asize = sizeof (saddr);
int ch;
- while ((ch = getopt(argc, argv, "p:h")) != EOF) {
+ while ((ch = getopt(argc, argv, "p:h")) != -1) {
switch(ch) {
case 'p':
yp_dir = optarg;
OpenPOWER on IntegriCloud