* src/newgrp.c: Limit the scope of variable pid.

* src/login_nopam.c: Limit the scope of variables end, lineno, i,
	str_len.
	* src/logoutd.c: Limit the scope of variable c.
	* src/vipw.c: Re-indent.
	* src/vipw.c: Close the file after the creation of the backup.
	* src/useradd.c (set_default): Close input file on failure.
	* src/useradd.c: Limit the scope of variables spool, file, fd, gr,
	gid, mode.
	* src/passwd.c: Limit the scope of variables last and ok.
	* src/chage.c: Fix typo (non breaking space).
	* src/login.c: Limit the scope of variables erasechar killchar, c,
	failed.
	* src/groups.c: Limit the scope of variable ngroups, pri_grp, i.
	* src/id.c: Limit the scope of variable i.
This commit is contained in:
nekral-guest
2010-03-23 11:26:34 +00:00
parent 4375be4642
commit 052e9105f7
11 changed files with 46 additions and 25 deletions

View File

@@ -282,7 +282,7 @@ static void syslog_sg (const char *name, const char *group)
* receives SIGCHLD from the terminating subshell. -- JWP
*/
{
pid_t child, pid;
pid_t child;
/* Ignore these signals. The signal handlers will later be
* restored to the default handlers. */
@@ -316,6 +316,7 @@ static void syslog_sg (const char *name, const char *group)
int cst = 0;
gid_t gid = getgid();
struct group *grp = getgrgid (gid);
pid_t pid;
do {
errno = 0;