]> git.saurik.com Git - apple/libc.git/blobdiff - gen/FreeBSD/fmtmsg.c
Libc-1439.100.3.tar.gz
[apple/libc.git] / gen / FreeBSD / fmtmsg.c
index e912693d0c0af89545f72fcc4b2da027dc444883..44ecc2f22ffcd4f94b9a8feb16a3cb876ff4880b 100644 (file)
@@ -47,7 +47,7 @@ static const char
                *sevinfo(int);
 static int      validmsgverb(const char *);
 
-static const char *validlist[] = {
+static const char * const validlist[] = {
        "label", "severity", "text", "action", "tag", NULL
 };
 
@@ -122,14 +122,14 @@ def:
 
                        XXX this is a *huge* kludge to pass the SuSv3 tests,
                          I don't think of it as cheating because they are
-                         looking in the wrong place (/realdev/console) to do
+                         looking in the wrong place (/var/log/console) to do
                          their testing, but they can't look in the "right"
                          place for various reasons */
                        char *cpath = "/dev/console";
                        struct stat sb;
-                       int rc = stat("/realdev/console", &sb);
+                       int rc = stat("/var/log/console", &sb);
                        if (rc == 0 && (sb.st_mode & S_IFDIR)) {
-                           cpath = "/realdev/console";
+                           cpath = "/var/log/console";
                        }
                        /* XXX thus ends the kludge - changes after
                          this point may be safely integrated */