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/mtrace Pull up revision 1.16 (requested by he):
details: https://anonhg.NetBSD.org/src/rev/44bec1eecf0f
branches: netbsd-1-4
changeset: 471155:44bec1eecf0f
user: he <he%NetBSD.org@localhost>
date: Thu Oct 19 18:56:17 2000 +0000
description:
Pull up revision 1.16 (requested by he):
Add ``const'' at appropriate places to make it compile again.
diffstat:
usr.sbin/mtrace/mtrace.c | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diffs (49 lines):
diff -r b6fd31e8a44a -r 44bec1eecf0f usr.sbin/mtrace/mtrace.c
--- a/usr.sbin/mtrace/mtrace.c Thu Oct 19 18:54:14 2000 +0000
+++ b/usr.sbin/mtrace/mtrace.c Thu Oct 19 18:56:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mtrace.c,v 1.12.2.2 2000/10/19 17:05:37 he Exp $ */
+/* $NetBSD: mtrace.c,v 1.12.2.3 2000/10/19 18:56:17 he Exp $ */
/*
* mtrace.c
@@ -52,7 +52,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: mtrace.c,v 1.12.2.2 2000/10/19 17:05:37 he Exp $");
+__RCSID("$NetBSD: mtrace.c,v 1.12.2.3 2000/10/19 18:56:17 he Exp $");
#endif
#include <sys/types.h>
@@ -168,11 +168,7 @@
void passive_mode __P((void));
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 *
@@ -1711,7 +1707,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];
@@ -1722,7 +1718,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