diff --git a/src/openldap.c b/src/openldap.c
index bca686e8aa9dd0ee2703ef748389e3224e64f497..bd79b26b7312bf076c95a247f9d3331688e5f550 100644 (file)
--- a/src/openldap.c
+++ b/src/openldap.c
#include "plugin.h"
#include "configfile.h"
+#if defined(__APPLE__)
+#pragma clang diagnostic push
+#pragma clang diagnostic warning "-Wdeprecated-declarations"
+#endif
+
#include <lber.h>
#include <ldap.h>
st->name, st->url);
status = -1;
}
- else
+
+ if ((status == 0) && (ludpp->lud_host != NULL))
{
st->host = strdup (ludpp->lud_host);
}
plugin_register_complex_config ("openldap", cldap_config);
plugin_register_init ("openldap", cldap_init);
} /* }}} void module_register */
+
+#if defined(__APPLE__)
+#pragma clang diagnostic pop
+#endif