From 40c3ab2fbc39e2fcd2e6713ecb08fe7b5b61ba17 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 5 Feb 2009 18:18:09 +0100 Subject: s4:auth/ntlm: fix c++ warning metze --- source4/auth/ntlm/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/auth/ntlm') diff --git a/source4/auth/ntlm/auth.c b/source4/auth/ntlm/auth.c index d00c81206a..20967a6bda 100644 --- a/source4/auth/ntlm/auth.c +++ b/source4/auth/ntlm/auth.c @@ -462,7 +462,7 @@ _PUBLIC_ NTSTATUS auth_register(const struct auth_operations *ops) struct auth_backend, num_backends+1); NT_STATUS_HAVE_NO_MEMORY(backends); - new_ops = talloc_memdup(backends, ops, sizeof(*ops)); + new_ops = (struct auth_operations *)talloc_memdup(backends, ops, sizeof(*ops)); NT_STATUS_HAVE_NO_MEMORY(new_ops); new_ops->name = talloc_strdup(new_ops, ops->name); NT_STATUS_HAVE_NO_MEMORY(new_ops->name); -- cgit