]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix some compile problems.
authorTed Lemon <source@isc.org>
Wed, 17 Jan 2001 16:56:48 +0000 (16:56 +0000)
committerTed Lemon <source@isc.org>
Wed, 17 Jan 2001 16:56:48 +0000 (16:56 +0000)
common/tree.c
minires/res_findzonecut.c
minires/toisc.c

index 1b391e0da750c2c1f5dae167136978d5b703823f..9e5ad5414e30bde379061c0da85b11221772c3ca 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: tree.c,v 1.96 2001/01/16 23:15:38 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: tree.c,v 1.97 2001/01/17 16:56:42 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -969,12 +969,16 @@ int evaluate_boolean_expression (result, packet, lease, client_state,
                            break;
 
                          case binding_dns:
+#if defined (NSUPDATE)
                            /* XXX This should be a comparison for equal
                               XXX values, not for identity. */
                            if (bv -> value.dns == obv -> value.dns)
                                *result = expr -> op == expr_equal;
                            else
                                *result = expr -> op == expr_not_equal;
+#else
+                               *result = expr -> op == expr_not_equal;
+#endif
                            break;
 
                          case binding_function:
index d56c8babdd1f5ac818fd42d4359c623e844361eb..dd49fa03ec9714b1325392aefe87d4cd10370807 100644 (file)
@@ -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)
index da78a63c443cec4174d0bb71d14e6f01d6299065..06472c0a841dccd970951d1e934067598916baff 100644 (file)
@@ -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;
 }