From: Wouter Wijngaards Date: Tue, 26 Jan 2016 09:00:06 +0000 (+0000) Subject: Fixup declaration after statement. X-Git-Tag: release-1.5.8~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cee936b7151d91da0f2f2b7cda87a05b510de575;p=thirdparty%2Funbound.git Fixup declaration after statement. git-svn-id: file:///svn/unbound/trunk@3606 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/daemon/unbound.c b/daemon/unbound.c index 60dd7ba64..6a266a215 100644 --- a/daemon/unbound.c +++ b/daemon/unbound.c @@ -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);