]> git.sur5r.net Git - openldap/blobdiff - contrib/slapd-modules/nssov/ether.c
ITS#8097 nssov: update to protocol version 2
[openldap] / contrib / slapd-modules / nssov / ether.c
index 6af43ec88e3fb43ae5f402e657ab00e39c97470f..0cb85db830b3719789841927fca53f1b1bcffeae 100644 (file)
@@ -59,7 +59,7 @@ NSSOV_CBPRIV(ether,
        tmpaddr.ether_addr_octet[3] = ao[3]; \
        tmpaddr.ether_addr_octet[4] = ao[4]; \
        tmpaddr.ether_addr_octet[5] = ao[5]; } \
-  WRITE_TYPE(fp,tmpaddr,uint8_t[6]);
+  WRITE(fp,&tmpaddr,sizeof(uint8_t[6]));
 
 static int write_ether(nssov_ether_cbp *cbp,Entry *entry)
 {
@@ -141,7 +141,7 @@ NSSOV_HANDLE(
        struct berval filter = {sizeof(fbuf)};
        filter.bv_val = fbuf;
        BER_BVZERO(&cbp.name);
-       READ_TYPE(fp,addr,uint8_t[6]);
+       READ(fp,&addr,sizeof(uint8_t[6]));
        cbp.addr.bv_len = snprintf(cbp.buf,sizeof(cbp.buf), "%x:%x:%x:%x:%x:%x",
                addr.ether_addr_octet[0],
                addr.ether_addr_octet[1],