From: John Kohl Date: Fri, 9 Feb 1990 16:22:57 +0000 (+0000) Subject: add #define of krb5_princ_realm() X-Git-Tag: krb5-1.0-alpha2~1052 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d3bd1ffee048b0bb23605f778f43261ec339541b;p=krb5.git add #define of krb5_princ_realm() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@332 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/base-defs.h b/src/include/krb5/base-defs.h index fe01f2310..25c51b932 100644 --- a/src/include/krb5/base-defs.h +++ b/src/include/krb5/base-defs.h @@ -53,6 +53,8 @@ typedef struct _krb5_data { typedef krb5_data ** krb5_principal; /* array of strings */ /* CONVENTION: realm is first elem. */ +#define krb5_princ_realm(princ) ((princ)[0]) + #ifdef __STDC__ typedef void * krb5_pointer; #define PROTOTYPE(x) x