Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/tip Properly use format string
details: https://anonhg.NetBSD.org/src/rev/d64634452ffd
branches: trunk
changeset: 765338:d64634452ffd
user: joerg <joerg%NetBSD.org@localhost>
date: Tue May 24 12:46:16 2011 +0000
description:
Properly use format string
diffstat:
usr.bin/tip/hunt.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e34d012e99c1 -r d64634452ffd usr.bin/tip/hunt.c
--- a/usr.bin/tip/hunt.c Tue May 24 12:44:30 2011 +0000
+++ b/usr.bin/tip/hunt.c Tue May 24 12:46:16 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hunt.c,v 1.16 2006/12/14 17:09:43 christos Exp $ */
+/* $NetBSD: hunt.c,v 1.17 2011/05/24 12:46:16 joerg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)hunt.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: hunt.c,v 1.16 2006/12/14 17:09:43 christos Exp $");
+__RCSID("$NetBSD: hunt.c,v 1.17 2011/05/24 12:46:16 joerg Exp $");
#endif /* not lint */
#include "tip.h"
@@ -76,7 +76,7 @@
}
(void)alarm(0);
if (FD < 0) {
- warn(cp);
+ warn("%s", cp);
deadfl = 1;
} else if (!deadfl) {
struct termios cntrl;
Home |
Main Index |
Thread Index |
Old Index