diff --git a/modules/csync_smb.c b/modules/csync_smb.c index 2edc630..2b81d72 100644 --- a/modules/csync_smb.c +++ b/modules/csync_smb.c @@ -49,7 +49,6 @@ static void get_auth_data_with_context_fn(SMBCCTX *smb_ctx, char *pw, int pwlen) { static int try_krb5 = 1; - char *h; (void) smb_ctx; (void) shr; @@ -73,7 +72,7 @@ static void get_auth_data_with_context_fn(SMBCCTX *smb_ctx, } /* check for an existing user */ - h = smbc_getUser(smb_ctx); + const char* h = smbc_getUser(smb_ctx); if (h != NULL) { /* The username is known from the url. */ DEBUG_SMB(("csync_smb - have username from url: %s\n", h));