]> git.sur5r.net Git - openldap/commitdiff
fix format; silence warning
authorPierangelo Masarati <ando@openldap.org>
Sun, 15 Oct 2006 18:01:27 +0000 (18:01 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 15 Oct 2006 18:01:27 +0000 (18:01 +0000)
servers/slapd/bconfig.c

index d0d3edd1318a99415e20972d2cb925ab50b2f544..9e44314f69bb004ba4863c3602b3417d1cac7b6d 100644 (file)
@@ -2489,7 +2489,7 @@ loglevel_print( FILE *out )
 
        fprintf( out, "Installed log subsystems:\n\n" );
        for ( i = 0; !BER_BVISNULL( &loglevel_ops[ i ].word ); i++ ) {
-               fprintf( out, "\t%-30s (%d)\n",
+               fprintf( out, "\t%-30s (%lu)\n",
                        loglevel_ops[ i ].word.bv_val,
                        loglevel_ops[ i ].mask );
        }
@@ -2640,7 +2640,7 @@ config_security(ConfigArgs *c) {
        }
        for(i = 1; i < c->argc; i++) {
                slap_ssf_t *tgt = NULL;
-               char *src;
+               char *src = NULL;
                for ( j=0; !BER_BVISNULL( &sec_keys[j].key ); j++ ) {
                        if(!strncasecmp(c->argv[i], sec_keys[j].key.bv_val,
                                sec_keys[j].key.bv_len)) {