From adaecb2a9f0d0f3f3eabbb2d7e248f29681fecfc Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 28 Oct 1999 07:15:17 +0000 Subject: [PATCH] Added stubs function, for dummy references to exported symbols. See README 1.27 log --- servers/slapd/nt_svc.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/servers/slapd/nt_svc.c b/servers/slapd/nt_svc.c index 3056262795..33fa64d99c 100644 --- a/servers/slapd/nt_svc.c +++ b/servers/slapd/nt_svc.c @@ -18,7 +18,27 @@ void WINAPI ServiceMain( DWORD argc, LPTSTR *argv ); int srv_install( char* service, char* filename ); int srv_remove ( char* service, char* filename ); -int main( DWORD argc, LPTSTR *argv ) +static void stubs() +{ + ldap_add_s(NULL, NULL, NULL); + ldap_bind_s(NULL, NULL, NULL, 0); + ldap_delete_s(NULL, NULL); + ldap_first_attribute(NULL, NULL, NULL); + ldap_first_entry(NULL, NULL); + ldap_get_dn(NULL, NULL); + ldap_get_option(NULL, 0, NULL); + ldap_get_values_len(NULL, NULL, NULL); + ldap_init(NULL, 0); + ldap_modify_s(NULL, NULL, NULL); + ldap_modrdn_s(NULL, NULL, NULL); + ldap_msgfree(NULL); + ldap_next_attribute(NULL, NULL, NULL); + ldap_result(NULL, 0, 0, NULL, NULL); + ldap_search(NULL, NULL, 0, NULL, NULL, 0); + ldap_unbind(NULL); +} + +int main( int argc, LPTSTR *argv ) { int length; char filename[MAX_PATH], *fname_start; -- 2.39.5