Description: Fix FTBFS with GCC 15: give the extended-op callback type IFP
 a proper prototype
 The typedef 'int (*IFP)()' is an old-style function pointer without a
 prototype.  With the C23 semantics used by default by GCC 15, '()'
 means '(void)', so calling it with one argument (fct(pb) in back-sch.c)
 fails with "too many arguments to function 'fct'; expected 0, have 1".
 Give IFP the real prototype used by every callback: int (*)(Slapi_PBlock *).
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: vendor
Forwarded: no
Last-Update: 2026-09-05

--- slapi-nis-0.60.0.orig/src/back-sch.h
+++ slapi-nis-0.60.0/src/back-sch.h
@@ -136,7 +136,7 @@ struct backend_search_filter_config {
 #define LDAP_EXTOP_PASSMOD_TAG_OLDPWD	0x81U
 #define LDAP_EXTOP_PASSMOD_TAG_NEWPWD	0x82U
 
-typedef int (*IFP)();
+typedef int (*IFP)(Slapi_PBlock *pb);
 typedef struct backend_extop_handlers {
     char *oid;
     IFP extop_fct;

