URL: https://github.com/SSSD/sssd/pull/5747 Author: elkoniu Title: #5747: general: Fix compilation warnings Action: synchronized
To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/5747/head:pr5747 git checkout pr5747
From 5ce3163712fa326043e711cede5a65941907e3dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Po=C5=82awski?= <ppola...@redhat.com> Date: Mon, 16 Aug 2021 02:14:56 +0200 Subject: [PATCH] general: Fix compilation warnings Commit 44525a9995c775ac284a6203d0e505dc4bf0d459 introduced compilation warnings related to type casting. This commit fixes this by align types of pointer used in code. --- src/providers/files/files_init.c | 4 ++-- src/sss_client/pam_sss_gss.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/providers/files/files_init.c b/src/providers/files/files_init.c index a04f5d3ccd..f4a522b318 100644 --- a/src/providers/files/files_init.c +++ b/src/providers/files/files_init.c @@ -40,8 +40,8 @@ static errno_t files_init_file_sources(TALLOC_CTX *mem_ctx, int num_group_files = 0; const char **passwd_files = NULL; const char **group_files = NULL; - const char *dfl_passwd_files = NULL; - const char *env_group_files = NULL; + char *dfl_passwd_files = NULL; + char *env_group_files = NULL; int i; errno_t ret; diff --git a/src/sss_client/pam_sss_gss.c b/src/sss_client/pam_sss_gss.c index 86ca0055d5..51047efc34 100644 --- a/src/sss_client/pam_sss_gss.c +++ b/src/sss_client/pam_sss_gss.c @@ -510,7 +510,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, { const char *pam_service = NULL; const char *pam_user = NULL; - const char *ccache = NULL; + char *ccache = NULL; char *username = NULL; char *domain = NULL; char *target = NULL;
_______________________________________________ sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/sssd-devel@lists.fedorahosted.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure