]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Silence warnings
authorHoward Chu <hyc@openldap.org>
Fri, 5 Feb 2021 21:49:18 +0000 (21:49 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 5 Feb 2021 21:49:18 +0000 (21:49 +0000)
tests/progs/slapd-watcher.c

index 0195d6df19a26c6ca3668a2334c501e8f9db7c01..6dbb6e3be80e3daf74fe2573e2a7413cf6e8068d 100644 (file)
@@ -198,7 +198,6 @@ void display()
 {
        int i, j;
        struct timeval now;
-       struct tm *tm;
        time_t now_t;
 
        gettimeofday(&now, NULL);
@@ -339,7 +338,7 @@ void get_counters(
        BerElement *ber,
        counters *c )
 {
-       int i, rc;
+       int rc;
        slap_op_t op = SLAP_OP_BIND;
        struct berval dn, bv, *bvals, **bvp = &bvals;
 
@@ -560,6 +559,7 @@ setup_server( struct tester_conn_args *config, server *sv, int first )
        }
        if ( first )
                rotate_stats( sv );
+       return 0;
 }
 
 int