summaryrefslogtreecommitdiff
path: root/resolve.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 /resolve.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 'resolve.c')
-rw-r--r--resolve.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/resolve.c b/resolve.c
index ae3942b..470d33d 100644
--- a/resolve.c
+++ b/resolve.c
@@ -47,7 +47,6 @@
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
-
#include <resolv.h>
#include "resolve.h"
@@ -80,18 +79,6 @@ string_to_type (const char *name)
return -1;
}
-#if 0
-static char *
-type_to_string (int type)
-{
- struct stot *p = stot;
- for (p = stot; p->name; p++)
- if (type == p->type)
- return p->name;
- return NULL;
-}
-#endif
-
void
dns_free_data (struct dns_reply *r)
{
@@ -269,8 +256,6 @@ parse_reply (unsigned char *data, int len)
return r;
}
-
-
struct dns_reply *
dns_lookup (const char *domain, const char *type_name)
{
@@ -312,7 +297,7 @@ dns_free_data (struct dns_reply *r)
{
}
-#endif
+#endif /* not ( defined(HAVE_RES_SEARCH) && defined(HAVE_DN_EXPAND) ) */
#ifdef TEST
@@ -364,4 +349,4 @@ main (int argc, char **argv)
return 0;
}
-#endif
+#endif /* TEST */