diff options
author | emaste <emaste@FreeBSD.org> | 2011-01-04 02:52:22 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2011-01-04 02:52:22 +0000 |
commit | 9eacf6329030cacff0372eddc8d9416c78f4175f (patch) | |
tree | 376b7342c004d25722d620d1da9f17bc7c3563ce | |
parent | 72a79199d47df1c80741e57eb6ea92c82556ac74 (diff) | |
download | FreeBSD-src-9eacf6329030cacff0372eddc8d9416c78f4175f.zip FreeBSD-src-9eacf6329030cacff0372eddc8d9416c78f4175f.tar.gz |
Quiet clang warnings by using literal format strings for printf-like
functions.
-rw-r--r-- | usr.sbin/fwcontrol/fwdv.c | 4 | ||||
-rw-r--r-- | usr.sbin/fwcontrol/fwmpegts.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/fwcontrol/fwdv.c b/usr.sbin/fwcontrol/fwdv.c index 23237e5..afb3ada 100644 --- a/usr.sbin/fwcontrol/fwdv.c +++ b/usr.sbin/fwcontrol/fwdv.c @@ -110,7 +110,7 @@ dvrecv(int d, const char *filename, char ich, int count) } 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 ich, int count) 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)); diff --git a/usr.sbin/fwcontrol/fwmpegts.c b/usr.sbin/fwcontrol/fwmpegts.c index e92b799..d90b6dd 100644 --- a/usr.sbin/fwcontrol/fwmpegts.c +++ b/usr.sbin/fwcontrol/fwmpegts.c @@ -167,7 +167,7 @@ mpegtsrecv(int d, const char *filename, char ich, int count) 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); |