[med-svn] [htslib] 02/13: Avoid POSIX Issue 7-specific errno value [minor]

Andreas Tille tille at debian.org
Sat Jan 30 13:23:56 UTC 2016


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository htslib.

commit ae4c86a17c950925a2861a5ad38c5e8552cd838c
Author: John Marshall <jm18 at sanger.ac.uk>
Date:   Thu Dec 31 15:22:40 2015 +1300

    Avoid POSIX Issue 7-specific errno value [minor]
    
    (FreeBSD and derivatives apparently don't have ENOTRECOVERABLE.)
    Bugs in our callback routines are a "can't happen" scenario anyway,
    so falling back to the default EIO suffices.
---
 hfile_libcurl.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/hfile_libcurl.c b/hfile_libcurl.c
index fc449b9..1a38cb1 100644
--- a/hfile_libcurl.c
+++ b/hfile_libcurl.c
@@ -120,10 +120,6 @@ static int easy_errno(CURL *easy, CURLcode err)
         else
             return EIO;
 
-    case CURLE_WRITE_ERROR:
-    case CURLE_READ_ERROR:
-        return ENOTRECOVERABLE; // Indicates bugs in our callback routines
-
     case CURLE_OUT_OF_MEMORY:
         return ENOMEM;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/htslib.git



More information about the debian-med-commit mailing list