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/dhcp Apply patch (requested by he):
details: https://anonhg.NetBSD.org/src/rev/bb91ba1d77d0
branches: netbsd-1-4
changeset: 471151:bb91ba1d77d0
user: he <he%NetBSD.org@localhost>
date: Thu Oct 19 18:44:00 2000 +0000
description:
Apply patch (requested by he):
Add ``const'' to note() and do_percentm() functions.
diffstat:
usr.sbin/dhcp/common/errwarn.c | 10 +++++-----
usr.sbin/dhcp/includes/dhcpd.h | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (52 lines):
diff -r 3caf4d3dafe9 -r bb91ba1d77d0 usr.sbin/dhcp/common/errwarn.c
--- a/usr.sbin/dhcp/common/errwarn.c Thu Oct 19 18:34:33 2000 +0000
+++ b/usr.sbin/dhcp/common/errwarn.c Thu Oct 19 18:44:00 2000 +0000
@@ -42,13 +42,13 @@
#ifndef lint
static char copyright[] =
-"$Id: errwarn.c,v 1.2 1998/07/26 15:34:18 mycroft Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: errwarn.c,v 1.2.2.1 2000/10/19 18:44:00 he Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
#include <errno.h>
-static void do_percentm PROTO ((char *obuf, char *ibuf));
+static void do_percentm PROTO ((char *obuf, const char *ibuf));
static char mbuf [1024];
static char fbuf [1024];
@@ -117,7 +117,7 @@
/* Log a note... */
-int note (ANSI_DECL (char *) fmt, VA_DOTDOTDOT)
+int note (ANSI_DECL (const char *) fmt, VA_DOTDOTDOT)
KandR (char *fmt;)
va_dcl
{
@@ -171,9 +171,9 @@
static void do_percentm (obuf, ibuf)
char *obuf;
- char *ibuf;
+ const char *ibuf;
{
- char *s = ibuf;
+ const char *s = ibuf;
char *p = obuf;
int infmt = 0;
const char *m;
diff -r 3caf4d3dafe9 -r bb91ba1d77d0 usr.sbin/dhcp/includes/dhcpd.h
--- a/usr.sbin/dhcp/includes/dhcpd.h Thu Oct 19 18:34:33 2000 +0000
+++ b/usr.sbin/dhcp/includes/dhcpd.h Thu Oct 19 18:44:00 2000 +0000
@@ -486,7 +486,7 @@
extern int warnings_occurred;
void error PROTO ((char *, ...));
int warn PROTO ((char *, ...));
-int note PROTO ((char *, ...));
+int note PROTO ((const char *, ...));
int debug PROTO ((char *, ...));
int parse_warn PROTO ((char *, ...));
Home |
Main Index |
Thread Index |
Old Index