freebsd-ports/math/physcalc/files/patch-physnode.c
Baptiste Daroussin d5b1cb70d9 Prevent collision on getline(3)
While here regen patches
2016-05-13 19:34:56 +00: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) */