summaryrefslogtreecommitdiff
path: root/ldap-netgrp.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2006-10-17 14:13:17 +0000
committerArthur de Jong <arthur@arthurdejong.org>2006-10-17 14:13:17 +0000
commit198b9cdb023374fb47f91f5503655ca14b805a5f (patch)
tree58895dcecdffcb555e723bd036cabd118390382e /ldap-netgrp.c
parent42688c3b7d616c8dc221a76b1cf2155d336db954 (diff)
get rid of ltf files (which contain NPL licenced code btw) clean up includes and general small code cleanups
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@19 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'ldap-netgrp.c')
-rw-r--r--ldap-netgrp.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/ldap-netgrp.c b/ldap-netgrp.c
index ad9cfc2..2f1fd91 100644
--- a/ldap-netgrp.c
+++ b/ldap-netgrp.c
@@ -27,23 +27,16 @@
#include <stdio.h>
#include <stdarg.h>
#include <ctype.h>
-
-#ifdef HAVE_PORT_BEFORE_H
-#include <port_before.h>
-#endif
-
-#if defined(HAVE_THREAD_H)
-#include <thread.h>
-#elif defined(HAVE_PTHREAD_H)
-#include <pthread.h>
-#endif
-
#include <stdlib.h>
#include <sys/types.h>
#include <sys/param.h>
#include <string.h>
#include <assert.h>
-
+#if defined(HAVE_THREAD_H)
+#include <thread.h>
+#elif defined(HAVE_PTHREAD_H)
+#include <pthread.h>
+#endif
#ifdef HAVE_LBER_H
#include <lber.h>
#endif
@@ -54,15 +47,8 @@
#include "ldap-nss.h"
#include "util.h"
-#ifdef HAVE_PORT_AFTER_H
-#include <port_after.h>
-#endif
-
static struct ent_context *_ngbe = NULL;
-
-
-
/*
* I pulled the following macro (EXPAND), functions (strip_whitespace and
* _nss_netgroup_parseline) and structures (name_list and __netgrent) from
@@ -93,7 +79,6 @@ static struct ent_context *_ngbe = NULL;
/* A netgroup can consist of names of other netgroups. We have to
track which netgroups were read and which still have to be read. */
-
/* Dataset for iterating netgroups. */
struct __netgrent
{