Author: emaste Date: Mon Jun 14 23:51:35 2010 New Revision: 209190 URL: http://svn.freebsd.org/changeset/base/209190
Log: Use literal format strings. Found by clang. Modified: head/usr.sbin/tzsetup/tzsetup.c Modified: head/usr.sbin/tzsetup/tzsetup.c ============================================================================== --- head/usr.sbin/tzsetup/tzsetup.c Mon Jun 14 23:01:50 2010 (r209189) +++ head/usr.sbin/tzsetup/tzsetup.c Mon Jun 14 23:51:35 2010 (r209190) @@ -204,7 +204,7 @@ read_iso3166_table(void) fp = fopen(path_iso3166, "r"); if (!fp) - err(1, path_iso3166); + err(1, "%s", path_iso3166); lineno = 0; while ((s = fgetln(fp, &len)) != 0) { @@ -343,7 +343,7 @@ read_zones(void) fp = fopen(path_zonetab, "r"); if (!fp) - err(1, path_zonetab); + err(1, "%s", path_zonetab); lineno = 0; while ((line = fgetln(fp, &len)) != 0) { _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"