From: Boyuan Yang <byang@debian.org>
Date: Fri, 26 Apr 2024 10:41:33 -0400
Subject: diff.c: Use public interface ldap_bv2dn instead of ldap_bv2dn_x

The current openldap ldap_bv2dn_x() function is a private implementation.
The public interface ldap_bv2dn() share almost the same function parameters
except for the context. As a result, it is safe to use the public interface
as a replacement. This solves the FTBFS caused by
-Werror=implicit-function-declaration.

Bug-Debian: https://bugs.debian.org/1066357
---
 diff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diff.c b/diff.c
index bb000fc..4596662 100644
--- a/diff.c
+++ b/diff.c
@@ -215,7 +215,7 @@ safe_str2dn(char *str, LDAPDN *out, int flags)
         struct berval bv;
         bv.bv_val = str;
         bv.bv_len = strlen(str);
-        ldap_bv2dn_x(&bv, out, flags);
+        ldap_bv2dn(&bv, out, flags);
 }
 #else
 #error oops
