Quiet clang warnings by using literal format strings for printf-like

functions.
This commit is contained in:
Ed Maste 2011-01-04 02:52:22 +00:00
parent 7b62328843
commit 0737626a7f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216948
2 changed files with 3 additions and 3 deletions

View file

@ -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));

View file

@ -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);