Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Sprinkle some const



details:   https://anonhg.NetBSD.org/src/rev/7c6a18c2f14c
branches:  trunk
changeset: 581694:7c6a18c2f14c
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Jun 03 21:40:56 2005 +0000

description:
Sprinkle some const

diffstat:

 sys/netinet/ip_encap.c |  4 ++--
 sys/netinet/ip_encap.h |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (48 lines):

diff -r e1a71b77fac6 -r 7c6a18c2f14c sys/netinet/ip_encap.c
--- a/sys/netinet/ip_encap.c    Fri Jun 03 21:38:05 2005 +0000
+++ b/sys/netinet/ip_encap.c    Fri Jun 03 21:40:56 2005 +0000
@@ -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 @@
 
 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;
diff -r e1a71b77fac6 -r 7c6a18c2f14c sys/netinet/ip_encap.h
--- a/sys/netinet/ip_encap.h    Fri Jun 03 21:38:05 2005 +0000
+++ b/sys/netinet/ip_encap.h    Fri Jun 03 21:40:56 2005 +0000
@@ -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 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 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 *);



Home | Main Index | Thread Index | Old Index