From 97c9a00eb24d21f8750cd0380a565d96dd191d0a Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 20 Dec 2003 03:51:00 +0000 Subject: [PATCH] * 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 --- src/lib/gssapi/generic/ChangeLog | 6 ++++++ src/lib/gssapi/generic/gssapi_generic.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 */ -- 2.26.2