diff options
author | Michal Zidek <mzidek@redhat.com> | 2014-06-30 15:48:49 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-07-01 11:35:17 +0200 |
commit | 90ac46f71068d131391492360a8553bdd005b5a7 (patch) | |
tree | b24bb375f652e987be631449c679232bc1224c95 /src/sss_client | |
parent | 588f8fbe74e66cc015f185a5b798173d320a65b5 (diff) | |
download | sssd-90ac46f71068d131391492360a8553bdd005b5a7.tar.gz sssd-90ac46f71068d131391492360a8553bdd005b5a7.tar.xz sssd-90ac46f71068d131391492360a8553bdd005b5a7.zip |
Add type parameter to DISCARD_ALIGN macro
This macro will be used to suppress alignment
warnings when casting pointers.
fixes: https://fedorahosted.org/sssd/ticket/1359
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/sss_client')
-rw-r--r-- | src/sss_client/nss_mc_group.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sss_client/nss_mc_group.c b/src/sss_client/nss_mc_group.c index fb5e43f84..5af55468f 100644 --- a/src/sss_client/nss_mc_group.c +++ b/src/sss_client/nss_mc_group.c @@ -72,7 +72,7 @@ static errno_t sss_nss_mc_parse_result(struct sss_mc_rec *rec, return EFAULT; } - result->gr_mem = (char **)DISCARD_ALIGN(buffer); + result->gr_mem = DISCARD_ALIGN(buffer, char **); result->gr_mem[data->members] = NULL; cookie = NULL; |