From 2e1f142ab03d9accbf4c61b0b11986bc1cb33d12 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 10 Dec 2007 04:33:39 +0100 Subject: r26360: Add some const. (This used to be commit 3616ced29ed2385300f7268a742a9090840b626f) --- source4/auth/auth_anonymous.c | 2 +- source4/auth/auth_developer.c | 4 ++-- source4/auth/ntlm_check.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/auth') diff --git a/source4/auth/auth_anonymous.c b/source4/auth/auth_anonymous.c index 2dd0be5a04..bcab918347 100644 --- a/source4/auth/auth_anonymous.c +++ b/source4/auth/auth_anonymous.c @@ -56,7 +56,7 @@ static NTSTATUS anonymous_check_password(struct auth_method_context *ctx, return auth_anonymous_server_info(mem_ctx, lp_netbios_name(ctx->auth_ctx->lp_ctx), _server_info); } -static struct auth_operations anonymous_auth_ops = { +static const struct auth_operations anonymous_auth_ops = { .name = "anonymous", .get_challenge = auth_get_challenge_not_implemented, .want_check = anonymous_want_check, diff --git a/source4/auth/auth_developer.c b/source4/auth/auth_developer.c index cc5e79631f..57eb752ac8 100644 --- a/source4/auth/auth_developer.c +++ b/source4/auth/auth_developer.c @@ -129,7 +129,7 @@ static NTSTATUS name_to_ntstatus_check_password(struct auth_method_context *ctx, return nt_status; } -static struct auth_operations name_to_ntstatus_auth_ops = { +static const struct auth_operations name_to_ntstatus_auth_ops = { .name = "name_to_ntstatus", .get_challenge = auth_get_challenge_not_implemented, .want_check = name_to_ntstatus_want_check, @@ -179,7 +179,7 @@ static NTSTATUS fixed_challenge_check_password(struct auth_method_context *ctx, return NT_STATUS_NO_SUCH_USER; } -static struct auth_operations fixed_challenge_auth_ops = { +static const struct auth_operations fixed_challenge_auth_ops = { .name = "fixed_challenge", .get_challenge = fixed_challenge_get_challenge, .want_check = fixed_challenge_want_check, diff --git a/source4/auth/ntlm_check.c b/source4/auth/ntlm_check.c index b98ce50cf6..a0846f00de 100644 --- a/source4/auth/ntlm_check.c +++ b/source4/auth/ntlm_check.c @@ -295,7 +295,7 @@ NTSTATUS ntlm_password_check(TALLOC_CTX *mem_ctx, DATA_BLOB *user_sess_key, DATA_BLOB *lm_sess_key) { - static const uint8_t zeros[8]; + const static uint8_t zeros[8]; DATA_BLOB tmp_sess_key; if (stored_nt == NULL) { -- cgit