Michael Stefaniuc mstefani@redhat.de writes:
This cast is needed to silence a compile warning with older openldap versions; e.g. on RHEL5.
Actually the code is broken now, since you changed long to LONG the structures are no longer compatible... They will have to be converted explicitly.