]> git.sur5r.net Git - openldap/commitdiff
remove lint (ITS#4865)
authorPierangelo Masarati <ando@openldap.org>
Sun, 11 Mar 2007 17:46:46 +0000 (17:46 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 11 Mar 2007 17:46:46 +0000 (17:46 +0000)
servers/slapd/main.c

index b18b8e0e07fd1c11cfff66556160bab076c48ea5..bf68034e86d0c39304f68993aee75a9281048c5b 100644 (file)
@@ -396,7 +396,7 @@ int main( int argc, char **argv )
 
 #ifdef HAVE_NT_SERVICE_MANAGER
        {
-               int *i;
+               int *ip;
                char *newConfigFile;
                char *newConfigDir;
                char *newUrls;
@@ -408,9 +408,9 @@ int main( int argc, char **argv )
                            regService = serverName;
                }
 
-               i = (int*)lutil_getRegParam( regService, "DebugLevel" );
-               if ( i != NULL ) {
-                       slap_debug = *i;
+               ip = (int*)lutil_getRegParam( regService, "DebugLevel" );
+               if ( ip != NULL ) {
+                       slap_debug = *ip;
                        Debug( LDAP_DEBUG_ANY,
                                "new debug level from registry is: %d\n", slap_debug, 0, 0 );
                }
@@ -532,7 +532,6 @@ int main( int argc, char **argv )
                case 'o': {
                        char            *val = strchr( optarg, '=' );
                        struct berval   opt;
-                       int             i;
 
                        opt.bv_val = optarg;