]> granicus.if.org Git - php/commitdiff
Fix unused variables in fpm_env.c
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 12 Jun 2019 11:08:15 +0000 (13:08 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 12 Jun 2019 11:17:25 +0000 (13:17 +0200)
sapi/fpm/fpm/fpm_env.c

index ef7c980efb274e97960304585489c7f0ddd25445..9931ab480cf608b9ef012907f115cb65006716e5 100644 (file)
@@ -199,9 +199,6 @@ static int fpm_env_conf_wp(struct fpm_worker_pool_s *wp) /* {{{ */
 int fpm_env_init_main() /* {{{ */
 {
        struct fpm_worker_pool_s *wp;
-       int i;
-       char *first = NULL;
-       char *last = NULL;
        char *title;
 
        for (wp = fpm_worker_all_pools; wp; wp = wp->next) {
@@ -211,6 +208,9 @@ int fpm_env_init_main() /* {{{ */
        }
 #ifndef HAVE_SETPROCTITLE
 #ifdef __linux__
+       int i;
+       char *first = NULL;
+       char *last = NULL;
        /*
         * This piece of code has been inspirated from nginx and pureftpd code, which
         * are under BSD licence.