HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/ports/math/physcalc/files/patch-physnode.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) */