Quiet clang warnings by using literal format strings for printf-like
functions.
This commit is contained in:
parent
7b62328843
commit
0737626a7f
@ -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));
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user