s4:auth/ntlm: fix c++ warning
authorStefan Metzmacher <metze@samba.org>
Thu, 5 Feb 2009 17:18:09 +0000 (18:18 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 5 Feb 2009 17:18:09 +0000 (18:18 +0100)
metze

source4/auth/ntlm/auth.c

index d00c81206afab91ad60d733334760ee2bd81435f..20967a6bda3cc6ae0f49c7991e1c372d4faad441 100644 (file)
@@ -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);