X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/ad3c9f2af814c84582fdd1649e49ec4f68572c5a..aa54d2fad3d9038b43475aa93c76795c5141a993:/gen/FreeBSD/fmtmsg.c diff --git a/gen/FreeBSD/fmtmsg.c b/gen/FreeBSD/fmtmsg.c index e912693..44ecc2f 100644 --- a/gen/FreeBSD/fmtmsg.c +++ b/gen/FreeBSD/fmtmsg.c @@ -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 */