socsvn commit: r271848 - soc2014/dpl/netmap-ipfwjit/extra
dpl at FreeBSD.org
dpl at FreeBSD.org
Mon Aug 4 13:11:07 UTC 2014
Author: dpl
Date: Mon Aug 4 13:11:06 2014
New Revision: 271848
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=271848
Log:
Changed void pointer's type using cast to avoid C++ errors
Modified:
soc2014/dpl/netmap-ipfwjit/extra/glue.h
Modified: soc2014/dpl/netmap-ipfwjit/extra/glue.h
==============================================================================
--- soc2014/dpl/netmap-ipfwjit/extra/glue.h Mon Aug 4 13:10:15 2014 (r271847)
+++ soc2014/dpl/netmap-ipfwjit/extra/glue.h Mon Aug 4 13:11:06 2014 (r271848)
@@ -388,8 +388,8 @@
static inline void
_pkt_copy(const void *_src, void *_dst, int l)
{
- const uint64_t *src = _src;
- uint64_t *dst = _dst;
+ const uint64_t *src = (uint64_t *)_src;
+ uint64_t *dst = (uint64_t *)_dst;
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
if (unlikely(l >= 1024)) {
More information about the svn-soc-all
mailing list