[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: LDAP_CONST in sort.c in client libldap (ITS#436)

I was trying to understand why have LDAP_CONST at all.  What is the need.
What do the public headers need LDAP_CONST.  The IETF draft
makes no use of LDAP_CONST.

So why not  s/LDAP_CONST/const/ for everything ?

Just wondering

-Steve Sonntag

"Kurt D. Zeilenga" wrote:

> Redirected to devel for discussion
> At 11:08 PM 1/31/00 GMT, vtag@novell.com wrote:
> >Full_Name: Steven Sonntag
> >Version: dev
> >OS: Windows/NT
> >URL: ftp://ftp.openldap.org/incoming/
> >Submission from: (NULL) (
> >
> >
> >LDAP_CONST is not used consistently in file libraries/libldap/sort.c for the
> >external functions "ldap_sort_values" and "ldap_sort_strcasecmp"
> Since we require Standard C to build the library,
> LDAP_CONST should always be 'const'.  Hence, no problem
> should be created by the inconsistent use.
> >The function prototypes in ldap.h use LDAP_CONST, but the actual functions
> >in sort.c use a hardcoded "const"
> I'm actually thinking it best to s/LDAP_CONST/const/ for
> everything but public headers (ldap.h,lber.h,etc).
> Comments?

Steve Sonntag
Novell Directory Services
+1 801 861 7097