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