* gssapi_generic.c (const_oids): Renamed from oids, and now const.
authorKen Raeburn <raeburn@mit.edu>
Sat, 20 Dec 2003 03:51:00 +0000 (03:51 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 20 Dec 2003 03:51:00 +0000 (03:51 +0000)
(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

src/lib/gssapi/generic/ChangeLog
src/lib/gssapi/generic/gssapi_generic.c

index a6e77399e12a311301a53e56b9caf77f91a7b238..50f08cac8392df3c53c82d5684ea08313c96e965 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 4195cfe3977a517566558e406951c9233c8a3940..db92abb96bfafe85ca8454462cec9aef8e90bc8c 100644 (file)
@@ -33,7 +33,8 @@
 
 /* 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 */