[SCM] Samba Shared Repository - branch master updated

Björn Jacke bjacke at samba.org
Fri Dec 16 15:23:05 UTC 2016


The branch, master has been updated
       via  e7ab2ad pam_winbind: Fix compiler warnings
      from  cd20ced ctdb-tools: Don't trust non-hosting nodes in "ctdb ip all"

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit e7ab2ad887f4e5ef54afa14492541b6b3b2b1d8b
Author: Björn Jacke <bj at sernet.de>
Date:   Fri Dec 16 11:16:56 2016 +0100

    pam_winbind: Fix compiler warnings
    
    Thanks to Stef Walter <stefw at gnome.org>
    
    BUG: http://bugzilla.samba.org/show_bug.cgi?id=8888
    
    Signed-off-by: Bjoern Jacke <bj at sernet.de>
    Reviewed-by: Stefan Metzmacher <metze at samba.org>
    
    Autobuild-User(master): Björn Jacke <bj at sernet.de>
    Autobuild-Date(master): Fri Dec 16 16:22:32 CET 2016 on sn-devel-144

-----------------------------------------------------------------------

Summary of changes:
 nsswitch/pam_winbind.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index 40f4f7a..b78c6bd 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -667,7 +667,7 @@ static const char *_get_ntstatus_error_string(const char *nt_status_string)
 
 static int converse(const pam_handle_t *pamh,
 		    int nargs,
-		    struct pam_message **message,
+		    const struct pam_message **message,
 		    struct pam_response **response)
 {
 	int retval;
@@ -690,7 +690,8 @@ static int _make_remark(struct pwb_context *ctx,
 {
 	int retval = PAM_SUCCESS;
 
-	struct pam_message *pmsg[1], msg[1];
+	const struct pam_message *pmsg[1];
+	struct pam_message msg[1];
 	struct pam_response *resp;
 
 	if (ctx->flags & WINBIND_SILENT) {
@@ -843,7 +844,8 @@ static int wbc_auth_error_to_pam_error(struct pwb_context *ctx,
 #if defined(HAVE_PAM_RADIO_TYPE)
 static bool _pam_winbind_change_pwd(struct pwb_context *ctx)
 {
-	struct pam_message msg, *pmsg;
+	struct pam_message msg;
+	const struct pam_message *pmsg;
 	struct pam_response *resp = NULL;
 	int ret;
 	bool retval = false;
@@ -2194,7 +2196,8 @@ static int _winbind_read_password(struct pwb_context *ctx,
 	 */
 
 	{
-		struct pam_message msg[3], *pmsg[3];
+		struct pam_message msg[3];
+		const struct pam_message *pmsg[3];
 		struct pam_response *resp;
 		int i, replies;
 


-- 
Samba Shared Repository



More information about the samba-cvs mailing list