Make this compile again by fixing err args to have formats

Also, add NO_OBJ=t top the Makefie, since the test-harnest expects to
run it in place.
This commit is contained in:
imp 2020-09-12 17:23:51 +00:00
parent 5ea94347d9
commit 6b5b54b8b4
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
PROG= MdLoad
LIBADD= sbuf bsdxml
NO_OBJ= t
MAN=

View File

@ -216,7 +216,7 @@ g_simdisk_xml_load(const char *file)
fd = open(file, O_RDONLY);
if (fd < 0)
err(1, file);
err(1, "%s", file);
fstat(fd, &st);
p = mmap(NULL, st.st_size, PROT_READ, MAP_NOCORE|MAP_PRIVATE, fd, 0);
i = XML_Parse(parser, p, st.st_size, 1);