X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=contrib%2Fslapd-modules%2Fnssov%2Fether.c;h=1e7e6b1f7d0cb6187bdad4a35263964a5e61e08d;hb=59e9ff6243465640956b58ad1756a3ede53eca7c;hp=6af43ec88e3fb43ae5f402e657ab00e39c97470f;hpb=c127e78fb0c802852f6ca17ced416a33ef3e842e;p=openldap diff --git a/contrib/slapd-modules/nssov/ether.c b/contrib/slapd-modules/nssov/ether.c index 6af43ec88e..1e7e6b1f7d 100644 --- a/contrib/slapd-modules/nssov/ether.c +++ b/contrib/slapd-modules/nssov/ether.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 2008-2015 The OpenLDAP Foundation. + * Copyright 2008-2018 The OpenLDAP Foundation. * Copyright 2008 by Howard Chu, Symas Corp. * All rights reserved. * @@ -59,13 +59,13 @@ 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) { int32_t tmpint32; struct ether_addr tmpaddr; - struct berval tmparr[2], empty; + struct berval tmparr[2]; struct berval *names,*ethers; Attribute *a; int i,j; @@ -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],