]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
[master] Remove unneeded defines for errors
authorShawn Routhier <sar@isc.org>
Thu, 11 Sep 2014 03:26:40 +0000 (20:26 -0700)
committerShawn Routhier <sar@isc.org>
Thu, 11 Sep 2014 03:26:40 +0000 (20:26 -0700)
As part of 4.2.0 we renamed a number of errors but continued
to include the old ones in case somebody was building something
using our libraries.  This #ifdefs them and by defaults removes them
from the compile.

RELNOTES
includes/omapip/result.h
includes/site.h
util/bind.sh

index 64d8cecec44c02ad17d69ba00777124859031b8b..09c03e9173f4b38c6e542872456c57c239eedf6c 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -83,6 +83,14 @@ by Eric Young (eay@cryptsoft.com).
 - Server now supports a failover split value of 256.
   [ISC-Bugs] #36664]
 
+- Remove unneeded error #defines.  These defines were included in case
+  external programs required the older versions of the macro.  They
+  have been #ifdeffed for now and will be removed at a future date.
+  See site.h for the #define to include them again, but you should
+  switch to using the DHCP_R_* versions instead of the ISC_R_* versions.
+  Also ISC_R_MULTIPLE has been removed as it is also deifned in bind.
+  [ISC-Bugs #37128]
+
                        Changes since 4.3.1b1
 
 - Modify the linux and openwrt dhclient scripts to process information
index 3e4cf6a737340d70762534aca36acbf770a1d340..ae5f7d6a7f6da29ad9a4bdd82bffaec44df36e0c 100644 (file)
@@ -2,7 +2,7 @@
  */
 
 /*
- * Copyright (C) 2009  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2009,2014  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
 
 // Included for historical reasons, these should be removed as
 // soon as reasonable
+#ifdef INCLUDE_OLD_DHCP_ISC_ERROR_CODES
 #define ISC_R_HOSTUNKNOWN      DHCP_R_HOSTUNKNOWN
 #define ISC_R_VERSIONMISMATCH  DHCP_R_VERSIONMISMATCH
 #define ISC_R_PROTOCOLERROR    DHCP_R_PROTOCOLERROR    
 #define ISC_R_INVALIDARG       DHCP_R_INVALIDARG       
 #define ISC_R_NOTYET           DHCP_R_NOTYET           
 #define ISC_R_UNCHANGED                DHCP_R_UNCHANGED                
-#define ISC_R_MULTIPLE         DHCP_R_MULTIPLE
 #define ISC_R_KEYCONFLICT      DHCP_R_KEYCONFLICT      
 #define ISC_R_BADPARSE         DHCP_R_BADPARSE         
 #define ISC_R_NOKEYS           DHCP_R_NOKEYS           
 #define ISC_R_NOT_EQUAL                DHCP_R_NOT_EQUAL                
 #define ISC_R_CONNRESET                DHCP_R_CONNRESET                
 #define ISC_R_UNKNOWNATTRIBUTE DHCP_R_UNKNOWNATTRIBUTE 
+#endif
 
 isc_result_t
 dhcp_result_register(void);
index d87b309e9245ea37ec740362b36e8c19345c8f50..19a2e11faad3f040df649c40cb01ef535c463192 100644 (file)
    removal of this define.  Use at your own risk.  */
 /* #define ENABLE_GENTLE_SHUTDOWN */
 
+/* Include old error codes.  This is provided in case you
+   are building an external program similar to omshell for
+   which you need the ISC_R_* error codes.  You should switch
+   to DHCP_R_* error codes for those that have been defined
+   (see includes/omapip/result.h).  The extra defines and
+   this option will be removed at some time. */
+/* #define INCLUDE_OLD_DHCP_ISC_ERROR_CODES */
+
 /* Include definitions for various options.  In general these
    should be left as is, but if you have already defined one
    of these and prefer your definition you can comment the 
index 352fe9e1332ae639a9d4eabb880676072b767980..173bca6b26d27609b99227f1ea36506a9289fea9 100644 (file)
@@ -49,11 +49,11 @@ case $# in
        ### tarball with vastly different values.  So the version.tmp can not
        ### be used to chdir down into the directory that is unpacked.
        ###
-       v4_2) noSNAP=snapshot BINDTAG=v9_9_5_P1 ;;
-       v4_3) noSNAP=snapshot BINDTAG=v9_9_5_P1 ;;
+       v4_2) noSNAP=snapshot BINDTAG=v9_9 ;;
+       v4_3) noSNAP=snapshot BINDTAG=v9_9 ;;
        ### change to using the head of v9_9 until we upgrade DHCP
        ### to use shared libraries
-       HEAD|v[0-9]_[0-9].*) noSNAP=snapshot BINDTAG=v9_9_5_P1 ;;
+       HEAD|v[0-9]_[0-9].*) noSNAP=snapshot BINDTAG=v9_9 ;;
        ### HEAD|v[0-9]_[0-9].*) noSNAP=snapshot BINDTAG=HEAD ;;
        ###
        ### For ease of use, this records the sticky tag of versions