From 16661063d0a1eca2a75f8d84ad5445606aabf757 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 19 May 2006 22:37:52 +0000 Subject: [PATCH] silence warnings --- servers/slapd/limits.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5