]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - snmplib/snmp_pdu.c
SourceFormat Enforcement
[thirdparty/squid.git] / snmplib / snmp_pdu.c
index 418e4969c2183cfd8945f684dddb3b1d80e7d777..d5b4d4fdff26aa3643892a12c581197b7b237d8b 100644 (file)
@@ -33,7 +33,7 @@
  *
  **********************************************************************/
 
-#include "config.h"
+#include "squid.h"
 
 #include <stdio.h>
 
@@ -150,7 +150,7 @@ snmp_pdu_clone(struct snmp_pdu *Src) {
         snmp_set_api_error(SNMPERR_OS_ERR);
         return (NULL);
     }
-    xmemcpy((char *) Dest, (char *) Src, sizeof(struct snmp_pdu));
+    memcpy((char *) Dest, (char *) Src, sizeof(struct snmp_pdu));
 
 #if DEBUG_PDU
     snmplib_debug(8, "PDU %x:  Created %x\n", (unsigned int) Src, (unsigned int) Dest);
@@ -263,7 +263,6 @@ snmp_fix_pdu(struct snmp_pdu *pdu, int command) {
     return (newpdu);
 }
 
-
 /**********************************************************************/
 
 void
@@ -518,8 +517,8 @@ snmp_pdu_decode(u_char * Packet,    /* data */
             snmp_set_api_error(SNMPERR_OS_ERR);
             return (NULL);
         }
-        xmemcpy((char *) PDU->enterprise, (char *) objid,
-                PDU->enterprise_length * sizeof(oid));
+        memcpy((char *) PDU->enterprise, (char *) objid,
+               PDU->enterprise_length * sizeof(oid));
 
         /* Agent-addr */
         four = 4;