Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/fwctl Use format string for err(). From Henning Pet...
details: https://anonhg.NetBSD.org/src/rev/ab010cec87cb
branches: trunk
changeset: 760387:ab010cec87cb
user: wiz <wiz%NetBSD.org@localhost>
date: Tue Jan 04 09:04:24 2011 +0000
description:
Use format string for err(). From Henning Petersen in PR 44326.
diffstat:
usr.sbin/fwctl/fwdv.c | 6 +++---
usr.sbin/fwctl/fwmpegts.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 170b8e1581f6 -r ab010cec87cb usr.sbin/fwctl/fwdv.c
--- a/usr.sbin/fwctl/fwdv.c Tue Jan 04 08:58:59 2011 +0000
+++ b/usr.sbin/fwctl/fwdv.c Tue Jan 04 09:04:24 2011 +0000
@@ -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 @@
} 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 @@
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 -r 170b8e1581f6 -r ab010cec87cb usr.sbin/fwctl/fwmpegts.c
--- a/usr.sbin/fwctl/fwmpegts.c Tue Jan 04 08:58:59 2011 +0000
+++ b/usr.sbin/fwctl/fwmpegts.c Tue Jan 04 09:04:24 2011 +0000
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index