]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-build: fix some const build warnings.
authorGünther Deschner <gd@samba.org>
Wed, 22 Oct 2008 23:43:41 +0000 (01:43 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 22 Oct 2008 23:43:41 +0000 (01:43 +0200)
Guenther

source3/libsmb/clispnego.c

index fd312a4c0a7688d24122b195f13eefeb138c0f07..fb95d719259a5f2e54d68f11d43d2eb3ad636552 100644 (file)
@@ -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);