]> git.sur5r.net Git - openldap/commitdiff
Change diskNode.(n)rdn from unsigned char to char, matching their usage.
authorHallvard Furuseth <hallvard@openldap.org>
Sat, 30 Jul 2005 23:39:44 +0000 (23:39 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sat, 30 Jul 2005 23:39:44 +0000 (23:39 +0000)
servers/slapd/back-bdb/dn2id.c

index 526ba3949575ee4934455b90c7b272f324a374f8..bc6d0299eb9a43db530e444b13697f0294ceaa4d 100644 (file)
@@ -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;