[ldapvi] [PATCH] Declare fdcp in common.h, so that it can be called in sasl.c

Florian Weimer fweimer at redhat.com
Sat Dec 17 22:06:10 CET 2022


Otherwise, this results in an implicit function declaration
and a compilation error with future compilers

---
 ldapvi/common.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ldapvi/common.h b/ldapvi/common.h
index f731e62..5ed5c10 100644
--- a/ldapvi/common.h
+++ b/ldapvi/common.h
@@ -262,6 +262,7 @@ typedef struct dialog {
 
 int carray_cmp(GArray *a, GArray *b);
 int carray_ptr_cmp(const void *aa, const void *bb);
+void fdcp(int fdsrc, int fddst);
 void cp(char *src, char *dst, off_t skip, int append);
 void fcopy(FILE *src, FILE *dst);
 char choose(char *prompt, char *charbag, char *help);

Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>




More information about the ldapvi mailing list