summaryrefslogtreecommitdiff
path: root/server/protocol.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2006-11-28 16:21:09 +0000
committerArthur de Jong <arthur@arthurdejong.org>2006-11-28 16:21:09 +0000
commit3239c5ad583d149f656d99eaa46d2aa49611b4b0 (patch)
tree8559879a910a92e51232a50bf6f229fedf77a594 /server/protocol.c
parent3ab2f59efdd7c5d4abafde59a1941cb2872dd0e6 (diff)
rename LDF_ marcos to NSLCD_ macros to have a single namespace
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@134 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'server/protocol.c')
-rw-r--r--server/protocol.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/protocol.c b/server/protocol.c
index 0c201fd..9089156 100644
--- a/server/protocol.c
+++ b/server/protocol.c
@@ -86,10 +86,10 @@ static enum nss_status _nss_ldap_parse_proto (LDAPMessage *e,
return NSS_STATUS_SUCCESS;
}
-/* macros for expanding the LDF_PROTOCOL macro */
-#define LDF_STRING(field) WRITE_STRING(fp,field)
-#define LDF_STRINGLIST(field) WRITE_STRINGLIST_NULLTERM(fp,field)
-#define LDF_INT32(field) WRITE_INT32(fp,field)
+/* macros for expanding the NSLCD_PROTOCOL macro */
+#define NSLCD_STRING(field) WRITE_STRING(fp,field)
+#define NSLCD_STRINGLIST(field) WRITE_STRINGLIST_NULLTERM(fp,field)
+#define NSLCD_INT32(field) WRITE_INT32(fp,field)
#define PROTOCOL_NAME result.p_name
#define PROTOCOL_ALIASES result.p_aliases
#define PROTOCOL_NUMBER result.p_proto
@@ -122,7 +122,7 @@ int nslcd_protocol_byname(FILE *fp)
WRITE_INT32(fp,retv);
if (retv==NSLCD_RESULT_SUCCESS)
{
- LDF_PROTOCOL;
+ NSLCD_PROTOCOL;
}
WRITE_FLUSH(fp);
/* we're done */
@@ -155,7 +155,7 @@ int nslcd_protocol_bynumber(FILE *fp)
WRITE_INT32(fp,retv);
if (retv==NSLCD_RESULT_SUCCESS)
{
- LDF_PROTOCOL;
+ NSLCD_PROTOCOL;
}
WRITE_FLUSH(fp);
/* we're done */
@@ -185,7 +185,7 @@ int nslcd_protocol_all(FILE *fp)
/* write the result code */
WRITE_INT32(fp,retv);
/* write the entry */
- LDF_PROTOCOL;
+ NSLCD_PROTOCOL;
}
/* write the final result code */
WRITE_INT32(fp,retv);