- Add fix-missing-const.patch: Fix a compile error on Leap 15.1 Fixes boo#113889 OBS-URL: https://build.opensuse.org/request/show/645599 OBS-URL: https://build.opensuse.org/package/show/network:synchronization:files/csync?expand=0&rev=50
22 lines
645 B
Diff
22 lines
645 B
Diff
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));
|