From: John Kohl Date: Fri, 19 Oct 1990 13:19:10 +0000 (+0000) Subject: put the const in the right place X-Git-Tag: krb5-1.0-alpha2~109 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=42c9c098a3a64782f0c2ebe1ee8a9fc3904bb88a;p=krb5.git put the const in the right place git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1302 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/base-defs.h b/src/include/krb5/base-defs.h index e76e7edae..7ee3211f6 100644 --- a/src/include/krb5/base-defs.h +++ b/src/include/krb5/base-defs.h @@ -66,8 +66,9 @@ typedef char * krb5_const_pointer; typedef krb5_data ** krb5_principal; /* array of strings */ /* CONVENTION: realm is first elem. */ -typedef const krb5_data ** krb5_const_principal; /* array of strings */ - /* CONVENTION: realm is first elem. */ +/* constant version thereof: */ +typedef krb5_data * const * krb5_const_principal; + #define krb5_princ_realm(princ) ((princ)[0]) #endif /* KRB5_BASE_DEFS__ */