(oids): New macro, casts const_oids to non-const pointer for use in initializers.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15955
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-12-19 Ken Raeburn <raeburn@mit.edu>
+
+ * gssapi_generic.c (const_oids): Renamed from oids, and now const.
+ (oids): New macro, casts const_oids to non-const pointer for use
+ in initializers.
+
2003-12-13 Ken Raeburn <raeburn@mit.edu>
* gssapiP_generic.h: Include k5-platform.h.
/* Reserved static storage for GSS_oids. Comments are quotes from RFC 2744. */
-static gss_OID_desc oids[] = {
+#define oids ((gss_OID_desc *)const_oids)
+static const gss_OID_desc const_oids[] = {
/*
* The implementation must reserve static storage for a
* gss_OID_desc object containing the value */