From c73606309f37d088f6b8f8e05a9eee0aa2ee37fc Mon Sep 17 00:00:00 2001 From: likewise Date: Sun, 24 Nov 2002 22:27:10 +0000 Subject: [PATCH] Fixed argument type compiler warnings of the bcopy() call using type casting. --- src/core/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tcp.c b/src/core/tcp.c index d0eee5f5..508de3c9 100644 --- a/src/core/tcp.c +++ b/src/core/tcp.c @@ -709,7 +709,7 @@ tcp_seg_copy(struct tcp_seg *seg) if(cseg == NULL) { return NULL; } - bcopy(seg, cseg, sizeof(struct tcp_seg)); + bcopy((const char *)seg, (char *)cseg, sizeof(struct tcp_seg)); pbuf_ref(cseg->p); return cseg; }