diff options
author | Fabiano Fidêncio <fidencio@redhat.com> | 2016-11-08 21:05:09 +0100 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2017-09-25 21:34:55 +0200 |
commit | 47863dee64fa93859bc16ddc387010734da665ee (patch) | |
tree | ced08eed1b93132bb6ae52508c1825608a8473f1 /src | |
parent | 76ff0b1dd08b4f7320daa2d63ed4f052757b8ddf (diff) | |
download | sssd-47863dee64fa93859bc16ddc387010734da665ee.tar.gz sssd-47863dee64fa93859bc16ddc387010734da665ee.tar.xz sssd-47863dee64fa93859bc16ddc387010734da665ee.zip |
SSSCTL: Fix "-Wshadow" warning caught by GCC
This warning only happens when building SSSD on RHEL6.
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/sssctl/sssctl_cache.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/sssctl/sssctl_cache.c b/src/tools/sssctl/sssctl_cache.c index 8f0fc281b..9a7051abc 100644 --- a/src/tools/sssctl/sssctl_cache.c +++ b/src/tools/sssctl/sssctl_cache.c @@ -30,7 +30,7 @@ #define NOT_FOUND_MSG(obj) _(obj " %s is not present in cache.\n") -#define SSSCTL_CACHE_NAME {_("Name"), SYSDB_NAME, attr_name} +#define SSSCTL_CACHE_NAME {_("Name"), SYSDB_NAME, get_attr_name} #define SSSCTL_CACHE_CREATE {_("Cache entry creation date"), SYSDB_CREATE_TIME, attr_time} #define SSSCTL_CACHE_UPDATE {_("Cache entry last update time"), SYSDB_LAST_UPDATE, attr_time} #define SSSCTL_CACHE_EXPIRE {_("Cache entry expiration time"), SYSDB_CACHE_EXPIRE, attr_expire} @@ -87,11 +87,11 @@ static errno_t time_to_string(TALLOC_CTX *mem_ctx, return EOK; } -static errno_t attr_name(TALLOC_CTX *mem_ctx, - struct sysdb_attrs *entry, - struct sss_domain_info *dom, - const char *attr, - const char **_value) +static errno_t get_attr_name(TALLOC_CTX *mem_ctx, + struct sysdb_attrs *entry, + struct sss_domain_info *dom, + const char *attr, + const char **_value) { errno_t ret; const char *orig_name; |