changing whitespace for fun and profit: policydb.c
More formatting changes. Aside from the 80 character line limit even the checkpatch scripts like this file now. Too bad I don't get paid by the lines of code I change. Signed-off-by: Eric Paris <eparis@redhat.com> Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:
@@ -51,7 +51,7 @@ static char *symtab_name[SYM_NUM] = {
|
||||
};
|
||||
#endif
|
||||
|
||||
int selinux_mls_enabled = 0;
|
||||
int selinux_mls_enabled;
|
||||
|
||||
static unsigned int symtab_sizes[SYM_NUM] = {
|
||||
2,
|
||||
@@ -1012,11 +1012,10 @@ static int read_cons_helper(struct constraint_node **nodep, int ncons,
|
||||
if (!c)
|
||||
return -ENOMEM;
|
||||
|
||||
if (lc) {
|
||||
if (lc)
|
||||
lc->next = c;
|
||||
} else {
|
||||
else
|
||||
*nodep = c;
|
||||
}
|
||||
|
||||
rc = next_entry(buf, fp, (sizeof(u32) * 2));
|
||||
if (rc < 0)
|
||||
@@ -1030,11 +1029,10 @@ static int read_cons_helper(struct constraint_node **nodep, int ncons,
|
||||
if (!e)
|
||||
return -ENOMEM;
|
||||
|
||||
if (le) {
|
||||
if (le)
|
||||
le->next = e;
|
||||
} else {
|
||||
else
|
||||
c->expr = e;
|
||||
}
|
||||
|
||||
rc = next_entry(buf, fp, (sizeof(u32) * 3));
|
||||
if (rc < 0)
|
||||
@@ -1634,11 +1632,10 @@ int policydb_read(struct policydb *p, void *fp)
|
||||
rc = -ENOMEM;
|
||||
goto bad;
|
||||
}
|
||||
if (ltr) {
|
||||
if (ltr)
|
||||
ltr->next = tr;
|
||||
} else {
|
||||
else
|
||||
p->role_tr = tr;
|
||||
}
|
||||
rc = next_entry(buf, fp, sizeof(u32)*3);
|
||||
if (rc < 0)
|
||||
goto bad;
|
||||
@@ -1665,11 +1662,10 @@ int policydb_read(struct policydb *p, void *fp)
|
||||
rc = -ENOMEM;
|
||||
goto bad;
|
||||
}
|
||||
if (lra) {
|
||||
if (lra)
|
||||
lra->next = ra;
|
||||
} else {
|
||||
else
|
||||
p->role_allow = ra;
|
||||
}
|
||||
rc = next_entry(buf, fp, sizeof(u32)*2);
|
||||
if (rc < 0)
|
||||
goto bad;
|
||||
@@ -1703,11 +1699,10 @@ int policydb_read(struct policydb *p, void *fp)
|
||||
rc = -ENOMEM;
|
||||
goto bad;
|
||||
}
|
||||
if (l) {
|
||||
if (l)
|
||||
l->next = c;
|
||||
} else {
|
||||
else
|
||||
p->ocontexts[i] = c;
|
||||
}
|
||||
l = c;
|
||||
rc = -EINVAL;
|
||||
switch (i) {
|
||||
|
Reference in New Issue
Block a user