]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
mdb_dump: fix symbol clash on Windows
authorHoward Chu <hyc@openldap.org>
Wed, 22 Apr 2026 16:43:41 +0000 (17:43 +0100)
committerHoward Chu <hyc@openldap.org>
Wed, 22 Apr 2026 16:43:41 +0000 (17:43 +0100)
rename byte() to dobyte()

libraries/liblmdb/mdb_dump.c

index cefc664073723cbaa3f04213db73d2dbfbdbdeee..7a79eaec64eda7a8950ee0d9e119514f81b5a0f3 100644 (file)
@@ -83,7 +83,7 @@ static void text(MDB_val *v)
        putchar('\n');
 }
 
-static void byte(MDB_val *v)
+static void dobyte(MDB_val *v)
 {
        unsigned char *c, *end;
 
@@ -147,8 +147,8 @@ static int dumpit(MDB_txn *txn, MDB_dbi dbi, char *name)
                        text(&key);
                        text(&data);
                } else {
-                       byte(&key);
-                       byte(&data);
+                       dobyte(&key);
+                       dobyte(&data);
                }
        }
        printf("DATA=END\n");