summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-23 01:43:41 +0200
committerGünther Deschner <gd@samba.org>2008-10-23 01:43:41 +0200
commitd115c4587f0d157fcb7f716524d92fbe1899f44c (patch)
treecae35ba0832d6b62372d1d875407d4c866254294
parentc017909e2e2f971c68303b98b4a8a5b9019b0f6d (diff)
downloadsamba-d115c4587f0d157fcb7f716524d92fbe1899f44c.tar.gz
samba-d115c4587f0d157fcb7f716524d92fbe1899f44c.tar.bz2
samba-d115c4587f0d157fcb7f716524d92fbe1899f44c.zip
s3-build: fix some const build warnings.
Guenther
-rw-r--r--source3/libsmb/clispnego.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clispnego.c b/source3/libsmb/clispnego.c
index fd312a4c0a..fb95d71925 100644
--- a/source3/libsmb/clispnego.c
+++ b/source3/libsmb/clispnego.c
@@ -152,7 +152,7 @@ bool spnego_parse_negTokenInit(DATA_BLOB blob,
for (i=0; asn1_tag_remaining(data) > 0 && i < ASN1_MAX_OIDS-1; i++) {
const char *oid_str = NULL;
asn1_read_OID(data,NULL,&oid_str);
- OIDs[i] = oid_str;
+ OIDs[i] = CONST_DISCARD(char *, oid_str);
}
OIDs[i] = NULL;
asn1_end_tag(data);
@@ -257,7 +257,7 @@ bool parse_negTokenTarg(DATA_BLOB blob, char *OIDs[ASN1_MAX_OIDS], DATA_BLOB *se
for (i=0; asn1_tag_remaining(data) > 0 && i < ASN1_MAX_OIDS-1; i++) {
const char *oid_str = NULL;
asn1_read_OID(data,NULL,&oid_str);
- OIDs[i] = oid_str;
+ OIDs[i] = CONST_DISCARD(char *, oid_str);
}
OIDs[i] = NULL;
asn1_end_tag(data);