}
#endif
+ if ( *oc == NULL ) {
+ return 0;
+ }
+
*oc = LDAP_STAILQ_NEXT(*oc,soc_next);
return (*oc != NULL);
}
int
-register_oc( char *def, ObjectClass **soc, int dupok )
+register_oc( const char *def, ObjectClass **soc, int dupok )
{
LDAPObjectClass *oc;
int code;