svn commit: r216948 - head/usr.sbin/fwcontrol

Ed Maste emaste at FreeBSD.org
Tue Jan 4 02:52:22 UTC 2011


Author: emaste
Date: Tue Jan  4 02:52:22 2011
New Revision: 216948
URL: http://svn.freebsd.org/changeset/base/216948

Log:
  Quiet clang warnings by using literal format strings for printf-like
  functions.

Modified:
  head/usr.sbin/fwcontrol/fwdv.c
  head/usr.sbin/fwcontrol/fwmpegts.c

Modified: head/usr.sbin/fwcontrol/fwdv.c
==============================================================================
--- head/usr.sbin/fwcontrol/fwdv.c	Tue Jan  4 02:33:48 2011	(r216947)
+++ head/usr.sbin/fwcontrol/fwdv.c	Tue Jan  4 02:52:22 2011	(r216948)
@@ -110,7 +110,7 @@ dvrecv(int d, const char *filename, char
 	} else {
 		fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
 		if (fd == -1)
-			err(EX_NOINPUT, filename);
+			err(EX_NOINPUT, "%s", filename);
 	}
 	buf = malloc(RBUFSIZE);
 	pad = malloc(DSIZE*MAXBLOCKS);
@@ -270,7 +270,7 @@ dvsend(int d, const char *filename, char
 
 	fd = open(filename, O_RDONLY);
 	if (fd == -1)
-		err(EX_NOINPUT, filename);
+		err(EX_NOINPUT, "%s", filename);
 
 	pbuf = malloc(DSIZE * TNBUF);
 	bzero(wbuf, sizeof(wbuf));

Modified: head/usr.sbin/fwcontrol/fwmpegts.c
==============================================================================
--- head/usr.sbin/fwcontrol/fwmpegts.c	Tue Jan  4 02:33:48 2011	(r216947)
+++ head/usr.sbin/fwcontrol/fwmpegts.c	Tue Jan  4 02:52:22 2011	(r216948)
@@ -167,7 +167,7 @@ mpegtsrecv(int d, const char *filename, 
 	else {
 		fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
 		if (fd == -1)
-			err(EX_NOINPUT, filename);
+			err(EX_NOINPUT, "%s", filename);
 	}
 	buf = malloc(RBUFSIZE);
 


More information about the svn-src-all mailing list