static void at_usage(void);
static char *const err2text[] = {
+ "Success",
"Out of memory",
"ObjectClass not found",
- "ObjectClass inappropriate SUPerior",
- "ObjectClass operational",
+ "user-defined ObjectClass has inappropriate SUPerior",
+ "user-defined ObjectClass includes operational attributes",
"Duplicate objectClass",
"AttributeType not found",
"AttributeType inappropriate USAGE",
char *
scherr2str(int code)
{
- if ( code < 0 || SLAP_SCHERR_LAST < code ) {
+ if ( code < 0 || SLAP_SCHERR_LAST <= code ) {
return "Unknown error";
} else {
return err2text[code];