]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fixup declaration after statement.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 26 Jan 2016 09:00:06 +0000 (09:00 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 26 Jan 2016 09:00:06 +0000 (09:00 +0000)
git-svn-id: file:///svn/unbound/trunk@3606 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/unbound.c

index 60dd7ba64b761e5ea5a871869ee4c57a1e8530ed..6a266a215ee7d1489f48705b0533f38a8569c2fe 100644 (file)
@@ -443,6 +443,9 @@ static void
 perform_setup(struct daemon* daemon, struct config_file* cfg, int debug_mode,
        const char** cfgfile)
 {
+#ifdef HAVE_KILL
+       int pidinchroot;
+#endif
 #ifdef HAVE_GETPWNAM
        struct passwd *pwd = NULL;
 
@@ -482,7 +485,7 @@ perform_setup(struct daemon* daemon, struct config_file* cfg, int debug_mode,
 
 #ifdef HAVE_KILL
        /* true if pidfile is inside chrootdir, or nochroot */
-       const int pidinchroot = !(cfg->chrootdir && cfg->chrootdir[0]) ||
+       pidinchroot = !(cfg->chrootdir && cfg->chrootdir[0]) ||
                                (cfg->chrootdir && cfg->chrootdir[0] &&
                                strncmp(daemon->pidfile, cfg->chrootdir,
                                strlen(cfg->chrootdir))==0);