From 10601e7760eb13960e7ea9c8b7856c315e51f22f Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Sun, 1 Nov 2015 17:32:32 +0100 Subject: [PATCH] Rename variables in add_transition to be more explicit --- sepolicy-inject.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sepolicy-inject.c b/sepolicy-inject.c index 36803cbb0..eca4c3224 100644 --- a/sepolicy-inject.c +++ b/sepolicy-inject.c @@ -173,8 +173,8 @@ int add_rule(char *s, char *t, char *c, char *p, policydb_t *policy) { return 0; } -int add_transition(char *srcS, char *fconS, char *tgtS, char *c, policydb_t *policy) { - type_datum_t *src, *tgt, *fcon; +int add_transition(char *srcS, char *origS, char *tgtS, char *c, policydb_t *policy) { + type_datum_t *src, *tgt, *orig; class_datum_t *cls; avtab_datum_t *av; @@ -195,14 +195,14 @@ int add_transition(char *srcS, char *fconS, char *tgtS, char *c, policydb_t *pol fprintf(stderr, "class %s does not exist\n", c); return 1; } - fcon = hashtab_search(policy->p_types.table, fconS); + orig = hashtab_search(policy->p_types.table, origS); if (cls == NULL) { - fprintf(stderr, "class %s does not exist\n", fconS); + fprintf(stderr, "class %s does not exist\n", origS); return 1; } key.source_type = src->s.value; - key.target_type = fcon->s.value; + key.target_type = orig->s.value; key.target_class = cls->s.value; key.specified = AVTAB_TRANSITION; av = avtab_search(&policy->te_avtab, &key);