Don't call err() without a format string.

This commit is contained in:
Kris Kennaway 2000-07-12 00:35:53 +00:00
parent d303f71fdc
commit b6c96d5da5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62986
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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;
}