svn commit: r209192 - head/usr.bin/wtmpcvt
Ed Schouten
ed at FreeBSD.org
Tue Jun 15 04:47:16 UTC 2010
Author: ed
Date: Tue Jun 15 04:47:16 2010
New Revision: 209192
URL: http://svn.freebsd.org/changeset/base/209192
Log:
err() takes a printf format.
Submitted by: Pawel Worach
Spotted by: clang
Modified:
head/usr.bin/wtmpcvt/wtmpcvt.c
Modified: head/usr.bin/wtmpcvt/wtmpcvt.c
==============================================================================
--- head/usr.bin/wtmpcvt/wtmpcvt.c Tue Jun 15 00:25:04 2010 (r209191)
+++ head/usr.bin/wtmpcvt/wtmpcvt.c Tue Jun 15 04:47:16 2010 (r209192)
@@ -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) {
More information about the svn-src-head
mailing list