Declare the child and pid variable at the beginning of a block. This

fixes a compilation issue with gcc 2.95. The intent is the same as
Gentoo's patch shadow-4.0.12-gcc2.patch.
This commit is contained in:
nekral-guest
2007-11-14 13:46:15 +00:00
parent 15f43716c1
commit 8d527f156d
3 changed files with 10 additions and 0 deletions

View File

@@ -454,6 +454,7 @@ int main (int argc, char **argv)
* avoid any possibility of the parent being stopped when it
* receives SIGCHLD from the terminating subshell. -- JWP
*/
{
pid_t child, pid;
signal (SIGINT, SIG_IGN);
@@ -502,6 +503,7 @@ int main (int argc, char **argv)
signal (SIGTSTP, SIG_DFL);
signal (SIGTTIN, SIG_DFL);
signal (SIGTTOU, SIG_DFL);
}
#endif /* USE_PAM */
}
#endif /* USE_SYSLOG */