Date: Tue, 15 Jun 2010 04:47:16 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r209192 - head/usr.bin/wtmpcvt Message-ID: <201006150447.o5F4lGrd073697@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006150447.o5F4lGrd073697>