File: 07_diff.c-Use-public-interface-ldap_bv2dn-instead-of-ld.patch

package info (click to toggle)
ldapvi 1.7-11.2
  • links: PTS
  • area: main
  • in suites: sid
  • size: 1,204 kB
  • sloc: ansic: 6,536; xml: 1,331; sh: 194; makefile: 16
file content (28 lines) | stat: -rw-r--r-- 916 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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