summaryrefslogtreecommitdiff
path: root/xtests/tst-pam_group1.c
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2008-07-09 14:37:51 +0000
committerThorsten Kukuk <kukuk@thkukuk.de>2008-07-09 14:37:51 +0000
commit6377bdbbfc0af3c88572f5108f55344af745a010 (patch)
treeb01479d2d48356c7e95f81bcef10959fead6dca4 /xtests/tst-pam_group1.c
parent42f4dc06c31fc1e8eb3d11ce896bad65ca0489af (diff)
Relevant BUGIDs: 1976310
Purpose of commit: feature Commit summary: --------------- 2008-07-09 Thorsten Kukuk <kukuk@thkukuk.de> * modules/pam_exec/pam_exec.c (call_exec): Move all variable declaration to begin of a block (#1976310). * xtests/tst-pam_group1.c (run_test): Move no_grps declaration to begin of function (#1976310).
Diffstat (limited to 'xtests/tst-pam_group1.c')
-rw-r--r--xtests/tst-pam_group1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xtests/tst-pam_group1.c b/xtests/tst-pam_group1.c
index ca0c2ac9..e5e5ae1c 100644
--- a/xtests/tst-pam_group1.c
+++ b/xtests/tst-pam_group1.c
@@ -100,6 +100,7 @@ run_test (const char *user, gid_t groupid, int needit)
{
pam_handle_t *pamh = NULL;
int retval;
+ int no_grps;
retval = pam_start("tst-pam_group1", user, &conv, &pamh);
if (retval != PAM_SUCCESS)
@@ -136,7 +137,7 @@ run_test (const char *user, gid_t groupid, int needit)
}
- int no_grps = getgroups(0, NULL); /* find the current number of groups */
+ no_grps = getgroups(0, NULL); /* find the current number of groups */
if (no_grps > 0)
{
int i, found;