Use format string for err(). From Henning Petersen in PR 44326.

This commit is contained in:
wiz 2011-01-04 09:04:24 +00:00
parent 3af5634626
commit 260bd09a04
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fwdv.c,v 1.4 2010/08/24 08:41:24 cegger Exp $ */
/* $NetBSD: fwdv.c,v 1.5 2011/01/04 09:04:24 wiz Exp $ */
/*
* Copyright (C) 2003
* Hidetoshi Shimokawa. All rights reserved.
@ -107,7 +107,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);
@ -269,7 +269,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

@ -1,4 +1,4 @@
/* $NetBSD: fwmpegts.c,v 1.2 2010/08/24 08:41:24 cegger Exp $ */
/* $NetBSD: fwmpegts.c,v 1.3 2011/01/04 09:04:24 wiz Exp $ */
/*
* Copyright (C) 2005
* Petr Holub, Hidetoshi Shimokawa. All rights reserved.
@ -156,7 +156,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);