From e1742d1cb41356ad535b742ec16a594603259cba Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sat, 30 Jul 2005 23:39:44 +0000 Subject: [PATCH] Change diskNode.(n)rdn from unsigned char to char, matching their usage. --- servers/slapd/back-bdb/dn2id.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.39.5