From: Kurt Zeilenga Date: Tue, 6 Jun 2000 05:54:36 +0000 (+0000) Subject: Use err2txt for unknown error X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2739 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=10082bc34600fe95a081fdf818b3f6b11ee301f9;p=openldap Use err2txt for unknown error --- diff --git a/servers/slapd/schemaparse.c b/servers/slapd/schemaparse.c index 99eaa3a5e1..2205e8741c 100644 --- a/servers/slapd/schemaparse.c +++ b/servers/slapd/schemaparse.c @@ -25,7 +25,7 @@ static void oc_usage(void) LDAP_GCCATTR((noreturn)); static void at_usage(void) LDAP_GCCATTR((noreturn)); static char *const err2text[] = { - "", + "Unknown Error", "Out of memory", "ObjectClass not found", "AttributeType not found", @@ -44,7 +44,7 @@ char * scherr2str(int code) { if ( code < 1 || code >= (sizeof(err2text)/sizeof(char *)) ) { - return "Unknown error"; + return err2text[0]; } else { return err2text[code]; }