From: Pierangelo Masarati Date: Fri, 19 May 2006 22:37:52 +0000 (+0000) Subject: silence warnings X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~237 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=16661063d0a1eca2a75f8d84ad5445606aabf757;p=openldap silence warnings --- diff --git a/servers/slapd/limits.c b/servers/slapd/limits.c index 5f1d83c7d4..7eda28ec60 100644 --- a/servers/slapd/limits.c +++ b/servers/slapd/limits.c @@ -945,7 +945,7 @@ limits_unparse_one( struct slap_limits_set *lim, int which, struct berval *bv, b { char *ptr; - if ( !bv || !bv->bv_val ) return; + if ( !bv || !bv->bv_val ) return -1; ptr = bv->bv_val; @@ -1083,6 +1083,8 @@ t_hard: *ptr = '\0'; bv->bv_len = ptr - bv->bv_val; } + + return 0; } int