summaryrefslogtreecommitdiff
path: root/minires
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2001-01-17 16:56:48 +0000
committerTed Lemon <source@isc.org>2001-01-17 16:56:48 +0000
commit6cff8371b50d6285cff5a2a1caabe2198b493ffe (patch)
treef8d1ed8f19e70ec948f27faec6addf47bc8dda5a /minires
parentde830350bdd7f756effb6ecbe5c50c13d17305f7 (diff)
downloadisc-dhcp-6cff8371b50d6285cff5a2a1caabe2198b493ffe.tar.gz
Fix some compile problems.
Diffstat (limited to 'minires')
-rw-r--r--minires/res_findzonecut.c8
-rw-r--r--minires/toisc.c13
2 files changed, 16 insertions, 5 deletions
diff --git a/minires/res_findzonecut.c b/minires/res_findzonecut.c
index d56c8bab..dd49fa03 100644
--- a/minires/res_findzonecut.c
+++ b/minires/res_findzonecut.c
@@ -1,5 +1,5 @@
#if !defined(lint) && !defined(SABER)
-static const char rcsid[] = "$Id: res_findzonecut.c,v 1.11 2001/01/16 22:33:13 mellon Exp $";
+static const char rcsid[] = "$Id: res_findzonecut.c,v 1.12 2001/01/17 16:56:47 mellon Exp $";
#endif /* not lint */
/*
@@ -73,8 +73,8 @@ static isc_result_t save_a(res_state, ns_msg *, ns_sect,
static void free_nsrrset(rrset_ns *);
static void free_nsrr(rrset_ns *, rr_ns *);
static rr_ns * find_ns(rrset_ns *, const char *);
-static ns_rcode do_query(res_state, const char *, ns_class, ns_type,
- double *, ns_msg *, int *);
+static isc_result_t do_query(res_state, const char *, ns_class, ns_type,
+ double *, ns_msg *, int *);
/* Public. */
@@ -133,7 +133,7 @@ static ns_rcode do_query(res_state, const char *, ns_class, ns_type,
* keep going. for the NS and A queries this means we just give up.
*/
-ns_rcode
+isc_result_t
res_findzonecut(res_state statp, const char *dname, ns_class class, int opts,
char *zname, size_t zsize, struct in_addr *addrs, int naddrs,
int *count, void *zcookie)
diff --git a/minires/toisc.c b/minires/toisc.c
index da78a63c..06472c0a 100644
--- a/minires/toisc.c
+++ b/minires/toisc.c
@@ -237,24 +237,35 @@ isc_result_t uerr2isc (int err)
case EDQUOT:
return ISC_R_QUOTA;
+#ifdef EBADRPC
case EBADRPC:
return ISC_R_NOTIMPLEMENTED;
+#endif
+#ifdef ERPCMISMATCH
case ERPCMISMATCH:
return ISC_R_VERSIONMISMATCH;
+#endif
+#ifdef EPROGMISMATCH
case EPROGMISMATCH:
return ISC_R_VERSIONMISMATCH;
+#endif
+#ifdef EAUTH
case EAUTH:
return ISC_R_NOTAUTH;
+#endif
+#ifdef ENEEDAUTH
case ENEEDAUTH:
return ISC_R_NOTAUTH;
+#endif
+#ifdef EOVERFLOW
case EOVERFLOW:
return ISC_R_NOSPACE;
-
+#endif
}
return ISC_R_UNEXPECTED;
}