From: David Kalnischkies Date: Mon, 3 Aug 2009 12:31:40 +0000 (+0200) Subject: [apt-pkg/contrib/fileutl.cc] In function ExecWait(): fix compile warning: X-Git-Tag: 0.7.23~1^2~17 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/40e7fe0e053129c28c59acc79e94cc10e89e7738 [apt-pkg/contrib/fileutl.cc] In function ExecWait(): fix compile warning: warning: suggest explicit braces to avoid ambiguous ‘else’ --- diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index a7de09c44..4240d9f49 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -451,10 +451,12 @@ bool ExecWait(pid_t Pid,const char *Name,bool Reap) if (Reap == true) return false; if (WIFSIGNALED(Status) != 0) + { if( WTERMSIG(Status) == SIGSEGV) return _error->Error(_("Sub-process %s received a segmentation fault."),Name); else return _error->Error(_("Sub-process %s received signal %u."),Name, WTERMSIG(Status)); + } if (WIFEXITED(Status) != 0) return _error->Error(_("Sub-process %s returned an error code (%u)"),Name,WEXITSTATUS(Status));