summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-02-22 09:49:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:01 -0500
commit5f7b504cefa9e61a5fd3d65dd0a1be9e9341af90 (patch)
treebe0ac73ec397fa4cb16a2fc2e3c94b08654383c5 /source4/auth
parentbd1aed3232ac4b2e91b680f3a521dcb3a7ff2225 (diff)
downloadsamba-5f7b504cefa9e61a5fd3d65dd0a1be9e9341af90.tar.gz
samba-5f7b504cefa9e61a5fd3d65dd0a1be9e9341af90.tar.bz2
samba-5f7b504cefa9e61a5fd3d65dd0a1be9e9341af90.zip
r13619: fix compiler warning
metze (This used to be commit 7b284174aa36fdd5d6841dab4934f1f6ecfba4ce)
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/gensec/gensec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/gensec/gensec.c b/source4/auth/gensec/gensec.c
index 72c7f96cf6..f1f1c7f83a 100644
--- a/source4/auth/gensec/gensec.c
+++ b/source4/auth/gensec/gensec.c
@@ -1088,7 +1088,7 @@ NTSTATUS gensec_register(const struct gensec_security_ops *ops)
smb_panic("out of memory (or failed to realloc referenced memory) in gensec_register");
}
- generic_security_ops[gensec_num_backends] = ops;
+ generic_security_ops[gensec_num_backends] = discard_const(ops);
gensec_num_backends++;
generic_security_ops[gensec_num_backends] = NULL;