1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

libcli: Apply some const

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Volker Lendecke 2017-09-07 12:34:03 +02:00 committed by Andrew Bartlett
parent aea214fce6
commit 602ec8884b
2 changed files with 6 additions and 4 deletions

View File

@ -811,8 +811,9 @@ union netr_LogonLevel *netlogon_creds_shallow_copy_logon(TALLOC_CTX *mem_ctx,
copy a netlogon_creds_CredentialState struct
*/
struct netlogon_creds_CredentialState *netlogon_creds_copy(TALLOC_CTX *mem_ctx,
struct netlogon_creds_CredentialState *creds_in)
struct netlogon_creds_CredentialState *netlogon_creds_copy(
TALLOC_CTX *mem_ctx,
const struct netlogon_creds_CredentialState *creds_in)
{
struct netlogon_creds_CredentialState *creds = talloc_zero(mem_ctx, struct netlogon_creds_CredentialState);

View File

@ -38,8 +38,9 @@ void netlogon_creds_client_authenticator(struct netlogon_creds_CredentialState *
struct netr_Authenticator *next);
bool netlogon_creds_client_check(struct netlogon_creds_CredentialState *creds,
const struct netr_Credential *received_credentials);
struct netlogon_creds_CredentialState *netlogon_creds_copy(TALLOC_CTX *mem_ctx,
struct netlogon_creds_CredentialState *creds_in);
struct netlogon_creds_CredentialState *netlogon_creds_copy(
TALLOC_CTX *mem_ctx,
const struct netlogon_creds_CredentialState *creds_in);
/*****************************************************************
The above functions are common to the client and server interface