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/mrinfo Pull up revision 1.9 (requested by he):
details: https://anonhg.NetBSD.org/src/rev/6434ef22cf5e
branches: netbsd-1-4
changeset: 471152:6434ef22cf5e
user: he <he%NetBSD.org@localhost>
date: Thu Oct 19 18:50:28 2000 +0000
description:
Pull up revision 1.9 (requested by he):
Add ``const'' at appropriate places to make it compile again.
diffstat:
usr.sbin/mrinfo/mrinfo.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (48 lines):
diff -r bb91ba1d77d0 -r 6434ef22cf5e usr.sbin/mrinfo/mrinfo.c
--- a/usr.sbin/mrinfo/mrinfo.c Thu Oct 19 18:44:00 2000 +0000
+++ b/usr.sbin/mrinfo/mrinfo.c Thu Oct 19 18:50:28 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mrinfo.c,v 1.7.2.1 2000/10/19 17:05:26 he Exp $ */
+/* $NetBSD: mrinfo.c,v 1.7.2.2 2000/10/19 18:50:28 he Exp $ */
/*
* This tool requests configuration info from a multicast router
@@ -67,7 +67,7 @@
static char rcsid[] =
"@(#) Header: mrinfo.c,v 1.6 93/04/08 15:14:16 van Exp (LBL)";
#else
-__RCSID("$NetBSD: mrinfo.c,v 1.7.2.1 2000/10/19 17:05:26 he Exp $");
+__RCSID("$NetBSD: mrinfo.c,v 1.7.2.2 2000/10/19 18:50:28 he Exp $");
#endif
#endif
@@ -104,10 +104,7 @@
/* to shut up -Wstrict-prototypes */
int main __P((int argc, char *argv[]));
-#ifdef __STDC__
-void log(int severity, int syserr, char *format, ...)
- __attribute__((__format__(__printf__, 3, 4)));
-#endif
+/* log() prototyped in defs.h */
char *
@@ -135,7 +132,7 @@
*/
#ifdef __STDC__
void
-log(int severity, int syserr, char *format, ...)
+log(int severity, int syserr, const char *format, ...)
{
va_list ap;
char fmt[100];
@@ -145,7 +142,7 @@
void
log(severity, syserr, format, va_alist)
int severity, syserr;
- char *format;
+ const char *format;
va_dcl
{
va_list ap;
Home |
Main Index |
Thread Index |
Old Index