summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-07-12 00:35:53 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-07-12 00:35:53 +0000
commitb6c96d5da5059a47446b882da8785acd00e788cf (patch)
tree14c332e93845dd26c5b62fbff48e4cc65c816197
parentd303f71fdc8e3df22d22b30407040def68111cd5 (diff)
Notes
-rw-r--r--usr.sbin/elf2exe/elf2exe.c4
-rw-r--r--usr.sbin/kgzip/kgzcmp.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/elf2exe/elf2exe.c b/usr.sbin/elf2exe/elf2exe.c
index 41c7e87527e5..d0959eb1400c 100644
--- a/usr.sbin/elf2exe/elf2exe.c
+++ b/usr.sbin/elf2exe/elf2exe.c
@@ -102,7 +102,7 @@ open_elffile(char *filename)
int fileno = open(filename, O_RDONLY);
if (fileno < 0)
- err(1, filename);
+ err(1, "%s", filename);
return (fileno);
}
@@ -183,7 +183,7 @@ open_exefile(char *filename)
int fileno = open(filename, O_RDWR | O_TRUNC | O_CREAT, 0666);
if (fileno < 0)
- err(1, filename);
+ err(1, "%s", filename);
return (fileno);
}
diff --git a/usr.sbin/kgzip/kgzcmp.c b/usr.sbin/kgzip/kgzcmp.c
index 489e845a0a0e..a10c1678b90e 100644
--- a/usr.sbin/kgzip/kgzcmp.c
+++ b/usr.sbin/kgzip/kgzcmp.c
@@ -142,7 +142,7 @@ mk_data(const struct iodesc * idi, const struct iodesc * ido,
if (e)
errx(1, "%s: Invalid format", idi->fname);
if (fstat(ido->fd, &sb))
- err(1, ido->fname);
+ err(1, "%s", ido->fname);
kh->nsize = sb.st_size - KGZOFF;
}