Sprinkle some const

This commit is contained in:
martin 2005-06-03 21:40:56 +00:00
parent 8d53551666
commit 782608e87b
2 changed files with 5 additions and 5 deletions

View File

@ -70,7 +70,7 @@
#define USE_RADIX
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ip_encap.c,v 1.24 2005/06/02 15:21:35 tron Exp $");
__KERNEL_RCSID(0, "$NetBSD: ip_encap.c,v 1.25 2005/06/03 21:40:56 martin Exp $");
#include "opt_mrouting.h"
#include "opt_inet.h"
@ -645,7 +645,7 @@ fail:
const struct encaptab *
encap_attach_func(int af, int proto,
int (*func)(struct mbuf *, int, int, void *),
int (*func)(const struct mbuf *, int, int, void *),
const struct protosw *psw, void *arg)
{
struct encaptab *ep;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip_encap.h,v 1.7 2005/06/02 15:21:35 tron Exp $ */
/* $NetBSD: ip_encap.h,v 1.8 2005/06/03 21:40:56 martin Exp $ */
/* $KAME: ip_encap.h,v 1.7 2000/03/25 07:23:37 sumikawa Exp $ */
/*
@ -50,7 +50,7 @@ struct encaptab {
struct sockaddr *srcmask;
struct sockaddr *dst; /* remote addr */
struct sockaddr *dstmask;
int (*func) (struct mbuf *, int, int, void *);
int (*func) (const struct mbuf *, int, int, void *);
const struct protosw *psw; /* only pr_input will be used */
void *arg; /* passed via PACKET_TAG_ENCAP */
};
@ -63,7 +63,7 @@ const struct encaptab *encap_attach(int, int, const struct sockaddr *,
const struct sockaddr *, const struct sockaddr *,
const struct sockaddr *, const struct protosw *, void *);
const struct encaptab *encap_attach_func(int, int,
int (*)(struct mbuf *, int, int, void *),
int (*)(const struct mbuf *, int, int, void *),
const struct protosw *, void *);
void encap6_ctlinput(int, struct sockaddr *, void *);
int encap_detach(const struct encaptab *);