Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.sbin/bootp/common Pull up revision 1.5 (requested b...
details: https://anonhg.NetBSD.org/src/rev/c64b1a8ee5a2
branches: netbsd-1-4
changeset: 471123:c64b1a8ee5a2
user: he <he%NetBSD.org@localhost>
date: Thu Oct 19 17:05:00 2000 +0000
description:
Pull up revision 1.5 (requested by he):
Format string cleanup.
diffstat:
usr.sbin/bootp/common/hwaddr.c | 6 +++---
usr.sbin/bootp/common/report.c | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (53 lines):
diff -r bd1717e3fdb4 -r c64b1a8ee5a2 usr.sbin/bootp/common/hwaddr.c
--- a/usr.sbin/bootp/common/hwaddr.c Thu Oct 19 17:04:56 2000 +0000
+++ b/usr.sbin/bootp/common/hwaddr.c Thu Oct 19 17:05:00 2000 +0000
@@ -1,8 +1,8 @@
-/* $NetBSD: hwaddr.c,v 1.4 1998/03/14 04:39:54 lukem Exp $ */
+/* $NetBSD: hwaddr.c,v 1.4.2.1 2000/10/19 17:05:00 he Exp $ */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hwaddr.c,v 1.4 1998/03/14 04:39:54 lukem Exp $");
+__RCSID("$NetBSD: hwaddr.c,v 1.4.2.1 2000/10/19 17:05:00 he Exp $");
#endif
/*
@@ -144,7 +144,7 @@
sprintf(buf, "arp -d %s; arp -s %s %s temp",
a, a, haddrtoa(ha, len));
if (debug > 2)
- report(LOG_INFO, buf);
+ report(LOG_INFO, "%s", buf);
status = system(buf);
if (status)
report(LOG_ERR, "arp failed, exit code=0x%x", status);
diff -r bd1717e3fdb4 -r c64b1a8ee5a2 usr.sbin/bootp/common/report.c
--- a/usr.sbin/bootp/common/report.c Thu Oct 19 17:04:56 2000 +0000
+++ b/usr.sbin/bootp/common/report.c Thu Oct 19 17:05:00 2000 +0000
@@ -1,8 +1,8 @@
-/* $NetBSD: report.c,v 1.4 1998/07/26 15:33:34 mycroft Exp $ */
+/* $NetBSD: report.c,v 1.4.2.1 2000/10/19 17:05:02 he Exp $ */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: report.c,v 1.4 1998/07/26 15:33:34 mycroft Exp $");
+__RCSID("$NetBSD: report.c,v 1.4.2.1 2000/10/19 17:05:02 he Exp $");
#endif
/*
@@ -98,13 +98,13 @@
*/
#ifdef __STDC__
void
-report(int priority, char *fmt,...)
+report(int priority, const char *fmt,...)
#else
/*VARARGS2*/
void
report(priority, fmt, va_alist)
int priority;
- char *fmt;
+ const char *fmt;
va_dcl
#endif
{
Home |
Main Index |
Thread Index |
Old Index