add #define of krb5_princ_realm()
authorJohn Kohl <jtkohl@mit.edu>
Fri, 9 Feb 1990 16:22:57 +0000 (16:22 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Fri, 9 Feb 1990 16:22:57 +0000 (16:22 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@332 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/base-defs.h

index fe01f2310c1f4f9fc2d70c1d1f7d2ff857cf51ad..25c51b93249b245efeee465cc1d12f391e27f1d0 100644 (file)
@@ -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