From: Hallvard Furuseth Date: Sat, 30 Jul 2005 23:39:44 +0000 (+0000) Subject: Change diskNode.(n)rdn from unsigned char to char, matching their usage. X-Git-Tag: OPENLDAP_AC_BP~142 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e1742d1cb41356ad535b742ec16a594603259cba;p=openldap Change diskNode.(n)rdn from unsigned char to char, matching their usage. --- diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index 526ba39495..bc6d0299eb 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -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;