[Lcdproc] Usage of deprecated ldap functions
Robert Buchholz
rbu@gentoo.org
Sun Mar 18 20:51:02 2007
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig3D8B0C342C2821475BCDF4CC
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable
Hi *,
in the shared/configfile.c code is used for ldap data retrieval that has
been deprecated at least since openldap-2.2 and that has been ifdef'ed
out from the ldap.h in 2.3.
This produces the following warnings:
->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>=
>
configfile.c: In function 'connect_to_ldap':
configfile.c:340: warning: implicit declaration of function 'ldap_init'
configfile.c:360: warning: implicit declaration of function 'ldap_search_=
s'
configfile.c: In function 'find_key':
configfile.c:504: warning: implicit declaration of function
'ldap_get_values'
configfile.c:506: warning: implicit declaration of function
'ldap_count_values'
configfile.c:512: warning: implicit declaration of function
'ldap_value_free'
-<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<=
<
While this does not cause a linker error because the libldap still
provides the functions, the lcdproc file should at least define
LDAP_DEPRECATED to cause header to declare the functions.
What would be even better is if someone could have a look into ldap and
make it work using the new functions. I know it's bad style to post an
issue, but leave the patch a TODO, but I don't actually use ldap so
testing it would mean a little too much work for my taste :-)
Regards,
Robert
--------------enig3D8B0C342C2821475BCDF4CC
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFF/aX6yZx3L/ph1soRArX3AJ4j/VWZdswjUyUJX1ctXGS5G3oRtgCeIUz0
GBiNDRysGc50QYV0H17np0I=
=T49F
-----END PGP SIGNATURE-----
--------------enig3D8B0C342C2821475BCDF4CC--