opnsense-ports/math/physcalc/files/patch-physnode.c
Franco Fichtner ee1340af02 */*: sync with upstream
Taken from: FreeBSD
2016-05-16 11:27:06 +02:00

18 lines
381 B
C

--- physnode.c.orig 1998-08-29 14:17:12 UTC
+++ physnode.c
@@ -305,12 +305,12 @@ NODEP n;
}
EXPORT void bytecopy(dst, src, bytes)
-VOID *dst;
-VOID const *src;
+char *dst;
+char const *src;
int bytes;
{
while (bytes--)
- *((char *)dst)++ = *((char const *)src)++;
+ *dst++ = *src++;
}
EXPORT NODEP copynode(n) /* Create a duplicate of node n (including sub-nodes) */