[1965] in Kerberos-V5-bugs
passing arg 3 of `gss_import_name' discards `const' from pointer target type
daemon@ATHENA.MIT.EDU (Barry Jaspan)
Thu Jun 6 12:28:10 1996
Date: Thu, 6 Jun 96 12:28:04 -0400
From: "Barry Jaspan" <bjaspan@MIT.EDU>
To: krb5-bugs@MIT.EDU
gss_import_name is declared as
>> OM_uint32 INTERFACE gss_import_name
>> PROTOTYPE( (OM_uint32 FAR *, /* minor_status */
>> gss_buffer_t, /* input_name_buffer */
>> gss_OID, /* input_name_type(used to be const) */
>> gss_name_t FAR * /* output_name */
>> ));
but the name types are declared as const
>> extern const gss_OID_desc * const gss_nt_krb5_name;
resulting in a "discards `const'" warning every time a function calls
gss_import_name. It seems to me that this setup makes the warning
unavoidable. I am missing something?
Barry