diff options
-rw-r--r-- | nsswitch/pam_winbind.c | 4 | ||||
-rw-r--r-- | nsswitch/wbinfo.c | 7 | ||||
-rw-r--r-- | nsswitch/winbind_nss_linux.c | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c index 564f773ee4..f06f2b5ba8 100644 --- a/nsswitch/pam_winbind.c +++ b/nsswitch/pam_winbind.c @@ -663,7 +663,7 @@ static int converse(const pam_handle_t *pamh, retval = pam_get_item(pamh, PAM_CONV, (const void **) &conv); if (retval == PAM_SUCCESS) { retval = conv->conv(nargs, - (const struct pam_message **)message, + discard_const_p(const struct pam_message *, message), response, conv->appdata_ptr); } @@ -1998,7 +1998,7 @@ static int winbind_chauthtok_request(struct pwb_context *ctx, } /* FIXME: avoid to send multiple PAM messages after another */ - switch (reject_reason) { + switch ((int)reject_reason) { case -1: break; case WBC_PWD_CHANGE_NO_ERROR: diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c index a31fbdf283..9e06fb222e 100644 --- a/nsswitch/wbinfo.c +++ b/nsswitch/wbinfo.c @@ -1329,13 +1329,14 @@ static bool wbinfo_lookuprids(const char *domain, const char *arg) } wbc_status = wbcLookupRids(&dinfo->sid, num_rids, rids, - (const char **)&domain_name, &names, &types); + &p, &names, &types); if (!WBC_ERROR_IS_OK(wbc_status)) { d_printf("winbind_lookup_rids failed: %s\n", wbcErrorString(wbc_status)); goto done; } + domain_name = discard_const_p(char, p); d_printf("Domain: %s\n", domain_name); for (i=0; i<num_rids; i++) { @@ -2104,7 +2105,7 @@ enum { OPT_KRB5CCNAME }; -int main(int argc, char **argv, char **envp) +int main(int argc, const char **argv, char **envp) { int opt; TALLOC_CTX *frame = talloc_stackframe(); @@ -2219,7 +2220,7 @@ int main(int argc, char **argv, char **envp) /* Parse options */ - pc = poptGetContext("wbinfo", argc, (const char **)argv, + pc = poptGetContext("wbinfo", argc, argv, long_options, 0); /* Parse command line options */ diff --git a/nsswitch/winbind_nss_linux.c b/nsswitch/winbind_nss_linux.c index 70ede3edbd..9afa9d4272 100644 --- a/nsswitch/winbind_nss_linux.c +++ b/nsswitch/winbind_nss_linux.c @@ -287,7 +287,7 @@ static NSS_STATUS fill_pwent(struct passwd *result, Return NSS_STATUS_TRYAGAIN if we run out of memory. */ static NSS_STATUS fill_grent(struct group *result, struct winbindd_gr *gr, - char *gr_mem, char **buffer, size_t *buflen) + const char *gr_mem, char **buffer, size_t *buflen) { char *name; int i; |