[Midnightbsd-cvs] src: yacc.y:

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Mar 25 18:17:24 EDT 2009


Log Message:
-----------


Modified Files:
--------------
    src/usr.bin/mklocale:
        yacc.y (r1.1.1.1 -> r1.2)

-------------- next part --------------
Index: yacc.y
===================================================================
RCS file: /home/cvs/src/usr.bin/mklocale/yacc.y,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -L usr.bin/mklocale/yacc.y -L usr.bin/mklocale/yacc.y -u -r1.1.1.1 -r1.2
--- usr.bin/mklocale/yacc.y
+++ usr.bin/mklocale/yacc.y
@@ -42,7 +42,7 @@
 #endif /* not lint */
 
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/usr.bin/mklocale/yacc.y,v 1.25 2005/05/16 09:32:41 ru Exp $");
+__FBSDID("$FreeBSD: src/usr.bin/mklocale/yacc.y,v 1.27 2007/09/21 01:55:11 kevlo Exp $");
 
 #include <arpa/inet.h>
 
@@ -227,14 +227,14 @@
 
     fp = stdout;
 
-    while ((x = getopt(ac, av, "do:")) != EOF) {
+    while ((x = getopt(ac, av, "do:")) != -1) {
 	switch(x) {
 	case 'd':
 	    debug = 1;
 	    break;
 	case 'o':
 	    locale_file = optarg;
-	    if ((fp = fopen(locale_file, "w")) == 0)
+	    if ((fp = fopen(locale_file, "w")) == NULL)
 		err(1, "%s", locale_file);
 	    atexit(cleanout);
 	    break;


More information about the Midnightbsd-cvs mailing list