X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=contrib%2Fslapd-modules%2Fnssov%2Fether.c;h=2debbf7bcce237bba5a9734e582d3ef9b0410aea;hb=b054c23c5d218b3b5d49c760816984cd6954d501;hp=31e9e5449100d0b3deba5de626fc6ceb66716460;hpb=be3971d5d2b0cf838629509fff7f168d73dbf708;p=openldap diff --git a/contrib/slapd-modules/nssov/ether.c b/contrib/slapd-modules/nssov/ether.c index 31e9e54491..2debbf7bcc 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-2013 The OpenLDAP Foundation. + * Copyright 2008-2016 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],