Permalink
Browse files

- Remove warning in compilation.

  • Loading branch information...
1 parent a99570b commit 4d5a42c8d3d34c6487c2f9c224f6fb4a29de8e67 fujisawa committed May 5, 2001
Showing with 7 additions and 7 deletions.
  1. +1 −2 kame/sys/netinet6/natpt_log.c
  2. +6 −5 kame/sys/netinet6/natpt_trans.c
@@ -1,4 +1,4 @@
-/* $KAME: natpt_log.c,v 1.9 2001/04/04 05:22:56 itojun Exp $ */
+/* $KAME: natpt_log.c,v 1.10 2001/05/05 12:10:12 fujisawa Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -160,7 +160,6 @@ natpt_lbuf(int type, int priorities, size_t size)
{
struct mbuf *m;
struct lbuf *p;
- int l;
if (size + sizeof(struct l_hdr) > MCLBYTES)
return NULL;
@@ -1,4 +1,4 @@
-/* $KAME: natpt_trans.c,v 1.25 2001/04/08 21:30:36 fujisawa Exp $ */
+/* $KAME: natpt_trans.c,v 1.26 2001/05/05 12:10:13 fujisawa Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -37,6 +37,7 @@
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
+#include <sys/sysctl.h>
#include <sys/syslog.h>
#include <sys/systm.h>
@@ -266,15 +267,15 @@ fakeTimxceed(struct _cv *cv4from, struct mbuf *m4)
bcopy(&ats->remote.in4src, &Dum.a, sizeof(Dum.a));
bcopy(&ats->remote.in4dst, &Dee.a, sizeof(Dee.a));
cksum = adjustChecksum(ntohs(innerip4to->ip_sum),
- &Dum.a, sizeof(Dum.a),
- &Dee.a, sizeof(Dee.a));
+ (u_char *)&Dum.a, sizeof(Dum.a),
+ (u_char *)&Dee.a, sizeof(Dee.a));
innerip4to->ip_sum = htons(cksum);
Dum.p = ats->remote._sport;
Dum.p = ats->local._sport; /*XXX BUG? */
cksum = adjustChecksum(ntohs(icmp4to->icmp_cksum),
- &Dum, sizeof(Dum),
- &Dee, sizeof(Dee));
+ (u_char *)&Dum, sizeof(Dum),
+ (u_char *)&Dee, sizeof(Dee));
icmp4to->icmp_cksum = htons(cksum);
}

0 comments on commit 4d5a42c

Please sign in to comment.