mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-25 07:49:18 +00:00
err() takes a printf format.
Submitted by: Pawel Worach Spotted by: clang
This commit is contained in:
parent
a8437c97f1
commit
09071d46ab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209192
@ -113,10 +113,10 @@ main(int argc, char *argv[])
|
||||
/* Open files. */
|
||||
in = fopen(argv[1], "r");
|
||||
if (in == NULL)
|
||||
err(1, argv[1]);
|
||||
err(1, "%s", argv[1]);
|
||||
out = fopen(argv[2], "w");
|
||||
if (out == NULL)
|
||||
err(1, argv[2]);
|
||||
err(1, "%s", argv[2]);
|
||||
|
||||
/* Process entries. */
|
||||
while (fread(&ui, sizeof ui, 1, in) == 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user