Index: head/tests/sys/audit/administrative.c =================================================================== --- head/tests/sys/audit/administrative.c +++ head/tests/sys/audit/administrative.c @@ -163,7 +163,7 @@ snprintf(adregex, sizeof(adregex), "nfs_getfh.*%d.*ret.*success", pid); /* File needs to exist to call getfh(2) */ - ATF_REQUIRE(filedesc = open(path, O_CREAT, mode) != -1); + ATF_REQUIRE((filedesc = open(path, O_CREAT, mode)) != -1); FILE *pipefd = setup(fds, auclass); ATF_REQUIRE_EQ(0, getfh(path, &fhp)); check_audit(fds, adregex, pipefd); Index: head/tests/sys/audit/file-attribute-access.c =================================================================== --- head/tests/sys/audit/file-attribute-access.c +++ head/tests/sys/audit/file-attribute-access.c @@ -44,9 +44,9 @@ static fhandle_t fht; static int filedesc, fhdesc; static char extregex[80]; +static char buff[] = "ezio"; static struct stat statbuff; static struct statfs statfsbuff; -static const char *buff = "ezio"; static const char *auclass = "fa"; static const char *name = "authorname"; static const char *path = "fileforaudit"; Index: head/tests/sys/audit/file-attribute-modify.c =================================================================== --- head/tests/sys/audit/file-attribute-modify.c +++ head/tests/sys/audit/file-attribute-modify.c @@ -46,7 +46,7 @@ static struct pollfd fds[1]; static mode_t mode = 0777; static char extregex[80]; -static const char *buff = "ezio"; +static char buff[] = "ezio"; static const char *auclass = "fm"; static const char *name = "authorname"; static const char *path = "fileforaudit";