From 684a13e8de1526257ca2e40b6bf2e05585d4eaca Mon Sep 17 00:00:00 2001 From: Fabiano Fidêncio Date: Aug 28 2017 18:42:02 +0000 Subject: HBAC: Enforce coding style ipa_hbac_rule_info_recv() By convention, the output variables are prefixed with a underscore. Signed-off-by: Fabiano Fidêncio Reviewed-by: Pavel Březina Reviewed-by: Jakub Hrozek --- diff --git a/src/providers/ipa/ipa_hbac_rules.c b/src/providers/ipa/ipa_hbac_rules.c index 5a52a83..2a30750 100644 --- a/src/providers/ipa/ipa_hbac_rules.c +++ b/src/providers/ipa/ipa_hbac_rules.c @@ -297,16 +297,16 @@ fail: errno_t ipa_hbac_rule_info_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, - size_t *rule_count, - struct sysdb_attrs ***rules) + size_t *_rule_count, + struct sysdb_attrs ***_rules) { struct ipa_hbac_rule_state *state = tevent_req_data(req, struct ipa_hbac_rule_state); TEVENT_REQ_RETURN_ON_ERROR(req); - *rule_count = state->rule_count; - *rules = talloc_steal(mem_ctx, state->rules); + *_rule_count = state->rule_count; + *_rules = talloc_steal(mem_ctx, state->rules); return EOK; } diff --git a/src/providers/ipa/ipa_hbac_rules.h b/src/providers/ipa/ipa_hbac_rules.h index 732ea48..d8e5a14 100644 --- a/src/providers/ipa/ipa_hbac_rules.h +++ b/src/providers/ipa/ipa_hbac_rules.h @@ -35,7 +35,7 @@ ipa_hbac_rule_info_send(TALLOC_CTX *mem_ctx, errno_t ipa_hbac_rule_info_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, - size_t *rule_count, - struct sysdb_attrs ***rules); + size_t *_rule_count, + struct sysdb_attrs ***_rules); #endif /* IPA_HBAC_RULES_H_ */