Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net %-format pedant (always pass %s, don't use vari...
details: https://anonhg.NetBSD.org/src/rev/7a7de770403f
branches: trunk
changeset: 494553:7a7de770403f
user: itojun <itojun%NetBSD.org@localhost>
date: Sat Jul 08 03:28:01 2000 +0000
description:
%-format pedant (always pass %s, don't use variable alone).
from openbsd.
diffstat:
lib/libc/net/res_debug.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c51edffe8459 -r 7a7de770403f lib/libc/net/res_debug.c
--- a/lib/libc/net/res_debug.c Sat Jul 08 03:24:36 2000 +0000
+++ b/lib/libc/net/res_debug.c Sat Jul 08 03:28:01 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: res_debug.c,v 1.27 2000/07/07 08:03:39 itohy Exp $ */
+/* $NetBSD: res_debug.c,v 1.28 2000/07/08 03:28:01 itojun Exp $ */
/*-
* Copyright (c) 1985, 1990, 1993
@@ -81,7 +81,7 @@
static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93";
static char rcsid[] = "Id: res_debug.c,v 8.20 1997/06/01 20:34:37 vixie Exp ";
#else
-__RCSID("$NetBSD: res_debug.c,v 1.27 2000/07/07 08:03:39 itohy Exp $");
+__RCSID("$NetBSD: res_debug.c,v 1.28 2000/07/08 03:28:01 itojun Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -239,7 +239,7 @@
sflag = (int)(_res.pfcode & pflag);
if ((n = ntohs(cnt)) != 0) {
if ((!_res.pfcode) || ((sflag) && (_res.pfcode & RES_PRF_HEAD1)))
- fprintf(file, hs);
+ fprintf(file, "%s", hs);
while (--n >= 0) {
if ((!_res.pfcode) || sflag) {
cp = p_rr(cp, msg, file);
Home |
Main Index |
Thread Index |
Old Index