]> git.sur5r.net Git - openldap/commitdiff
silence warnings
authorPierangelo Masarati <ando@openldap.org>
Fri, 19 May 2006 22:37:52 +0000 (22:37 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 19 May 2006 22:37:52 +0000 (22:37 +0000)
servers/slapd/limits.c

index 5f1d83c7d40b978900b8fd93c9021740b537f68d..7eda28ec60e1f82da3a0e79ac39a8c0527e3b399 100644 (file)
@@ -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