/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 2008-2013 The OpenLDAP Foundation.
+ * Copyright 2008-2018 The OpenLDAP Foundation.
* Portions Copyright 2008-2009 by Howard Chu, Symas Corp.
* All rights reserved.
*
WRITE_INT32(cbp->fp,NSLCD_RESULT_BEGIN);
WRITE_BERVAL(cbp->fp,&names[i]);
WRITE_BERVAL(cbp->fp,&passwd);
- WRITE_TYPE(cbp->fp,gid,gid_t);
+ WRITE_INT32(cbp->fp,gid);
/* write a list of values */
WRITE_INT32(cbp->fp,nummembers);
if (nummembers)
char fbuf[1024];
struct berval filter = {sizeof(fbuf)};
filter.bv_val = fbuf;
- READ_TYPE(fp,gid,gid_t);
+ READ_INT32(fp,gid);
cbp.gidnum.bv_val = cbp.buf;
cbp.gidnum.bv_len = snprintf(cbp.buf,sizeof(cbp.buf),"%d",gid);
cbp.wantmembers = 1;