]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove the errno handling code, which was only used by readsymtab/writesymtab
authorBrian Wellington <source@isc.org>
Wed, 28 Mar 2001 23:11:41 +0000 (23:11 +0000)
committerBrian Wellington <source@isc.org>
Wed, 28 Mar 2001 23:11:41 +0000 (23:11 +0000)
lib/isccc/include/isccc/result.h
lib/isccc/result.c

index 8296e25129cf486cf02fb1f630ae30cfdcb3ac59..1cd3a8d232300601687bb2b3f42037bdb044c7b7 100644 (file)
@@ -16,7 +16,7 @@
  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: result.h,v 1.2 2001/03/27 20:08:10 bwelling Exp $ */
+/* $Id: result.h,v 1.3 2001/03/28 23:11:41 bwelling Exp $ */
 
 #ifndef ISCCC_RESULT_H
 #define ISCCC_RESULT_H 1
@@ -33,9 +33,6 @@
 
 #define ISCCC_R_NRESULTS               3       /* Number of results */
 
-#define ISCCC_RESULT_OSBASE            0x01000000
-#define ISCCC_RESULT_OSMASK            0x00ffffff
-
 ISC_LANG_BEGINDECLS
 
 const char *
@@ -47,12 +44,6 @@ isccc_result_totext(isc_result_t result);
 void
 isccc_result_register(void);
 
-isc_result_t
-isccc_result_fromerrno(int ecode);
-/*
- * Convert a UNIX errno into a isc_result_t.
- */
-
 ISC_LANG_ENDDECLS
 
 #endif /* ISCCC_RESULT_H */
index 1e8fa4bcddd54e19c3bb3d40a42ecc2b31b6b8f4..529e0fe283748e11b5041947565ddb95609a6a17 100644 (file)
@@ -16,7 +16,7 @@
  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: result.c,v 1.2 2001/03/27 20:08:00 bwelling Exp $ */
+/* $Id: result.c,v 1.3 2001/03/28 23:11:40 bwelling Exp $ */
 
 #include <config.h>
 
@@ -65,15 +65,3 @@ void
 isccc_result_register(void) {
        initialize();
 }
-
-isc_result_t
-isccc_result_fromerrno(int ecode) {
-       /*
-        * Convert a UNIX errno into a isc_result_t.
-        */
-       if (ecode == 0)
-               return (ISC_R_SUCCESS);
-       else if (ecode >= ISCCC_RESULT_OSBASE || ecode < 0)
-               return (ISC_R_FAILURE);
-       return (ISCCC_RESULT_OSBASE | ecode);
-}