mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 14:10:39 -05:00
Change diskNode.(n)rdn from unsigned char to char, matching their usage.
This commit is contained in:
parent
20cde48439
commit
e1742d1cb4
1 changed files with 4 additions and 4 deletions
|
|
@ -402,9 +402,9 @@ bdb_dn2idl(
|
|||
*/
|
||||
typedef struct diskNode {
|
||||
unsigned char nrdnlen[2];
|
||||
unsigned char nrdn[1];
|
||||
unsigned char rdn[1];
|
||||
unsigned char entryID[sizeof(ID)];
|
||||
char nrdn[1];
|
||||
char rdn[1]; /* variable placement */
|
||||
unsigned char entryID[sizeof(ID)]; /* variable placement */
|
||||
} diskNode;
|
||||
|
||||
/* This function constructs a full DN for a given entry.
|
||||
|
|
@ -516,7 +516,7 @@ hdb_dn2id_add(
|
|||
* will fail harmlessly.
|
||||
*/
|
||||
if ( eip->bei_id == 0 ) {
|
||||
diskNode dummy = {0};
|
||||
diskNode dummy = {{0, 0}, "", "", ""};
|
||||
data.data = &dummy;
|
||||
data.size = sizeof(diskNode);
|
||||
data.flags = DB_DBT_USERMEM;
|
||||
|
|
|
|||
Loading…
Reference in a new issue