From: Ken Raeburn Date: Sat, 20 Dec 2003 03:51:00 +0000 (+0000) Subject: * gssapi_generic.c (const_oids): Renamed from oids, and now const. X-Git-Tag: krb5-1.4-beta1~677 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=97c9a00eb24d21f8750cd0380a565d96dd191d0a;p=krb5.git * 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15955 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/generic/ChangeLog b/src/lib/gssapi/generic/ChangeLog index a6e77399e..50f08cac8 100644 --- a/src/lib/gssapi/generic/ChangeLog +++ b/src/lib/gssapi/generic/ChangeLog @@ -1,3 +1,9 @@ +2003-12-19 Ken Raeburn + + * 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 * gssapiP_generic.h: Include k5-platform.h. diff --git a/src/lib/gssapi/generic/gssapi_generic.c b/src/lib/gssapi/generic/gssapi_generic.c index 4195cfe39..db92abb96 100644 --- a/src/lib/gssapi/generic/gssapi_generic.c +++ b/src/lib/gssapi/generic/gssapi_generic.c @@ -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 */