diff options
author | Martin Hedenfal <martinh@cvs.openbsd.org> | 2010-06-30 04:17:05 +0000 |
---|---|---|
committer | Martin Hedenfal <martinh@cvs.openbsd.org> | 2010-06-30 04:17:05 +0000 |
commit | 38a7187bdfc3d6e73ae6871a39b21642f45e4fdb (patch) | |
tree | 290a0fb55501f38e223583d46d4d1bc7ceae2e6d /usr.sbin/ldapd/schema.h | |
parent | 4a01a99fc1546a421f6950b1727f84f4b5179514 (diff) |
Move OBJ_NAME and ATTR_NAME macros to schema.h so it's reachable from
schema parser. Also fix a typo.
Diffstat (limited to 'usr.sbin/ldapd/schema.h')
-rw-r--r-- | usr.sbin/ldapd/schema.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/ldapd/schema.h b/usr.sbin/ldapd/schema.h index 271a1038d4e..983d7e06b04 100644 --- a/usr.sbin/ldapd/schema.h +++ b/usr.sbin/ldapd/schema.h @@ -1,4 +1,4 @@ -/* $OpenBSD: schema.h,v 1.1 2010/06/29 02:45:46 martinh Exp $ */ +/* $OpenBSD: schema.h,v 1.2 2010/06/30 04:17:04 martinh Exp $ */ /* * Copyright (c) 2010 Martin Hedenfalk <martinh@openbsd.org> @@ -19,6 +19,10 @@ #ifndef _schema_h_ #define _schema_h_ +#define OBJ_NAME(obj) ((obj)->names ? SLIST_FIRST((obj)->names)->name : \ + (obj)->oid) +#define ATTR_NAME(at) OBJ_NAME(at) + enum usage { USAGE_USER_APP, USAGE_DIR_OP, /* operational attribute */ |