]> git.tue.mpg.de Git - paraslash.git/commitdiff
dccp_senc.c: Kill E_DCCP_WRITE.
authorAndre Noll <maan@systemlinux.org>
Fri, 1 Feb 2008 22:40:24 +0000 (23:40 +0100)
committerAndre Noll <maan@systemlinux.org>
Fri, 1 Feb 2008 22:40:24 +0000 (23:40 +0100)
Use ERRNO_TO_PARA_ERROR() instead.

dccp_send.c
error.h

index a4a9371a81b289ca1cdca2cd2949a9547c16691f..5449a6a9664f070b0115d3bdb2a6f9471718f796 100644 (file)
@@ -51,7 +51,7 @@ struct dccp_client {
        struct chunk_queue *cq;
 };
 
-static void dccp_pre_select( int *max_fileno, fd_set *rfds,
+static void dccp_pre_select(int *max_fileno, fd_set *rfds,
                __a_unused fd_set *wfds)
 {
        if (listen_fd < 0)
@@ -145,10 +145,8 @@ static int dccp_write(int fd, const char *buf, size_t len)
                 */
                if (ret < 0 && errno == EAGAIN)
                        return written;
-               if (ret < 0) {
-                       PARA_ERROR_LOG("%s\n", strerror(errno));
-                       return -E_DCCP_WRITE;
-               }
+               if (ret < 0)
+                       return -ERRNO_TO_PARA_ERROR(errno);
                written += ret;
        }
        return written;
diff --git a/error.h b/error.h
index dd5cc579387ce3d3c78131a812b9184e9b57d787..9ef8195c1f6af10a43e1f58d32a5d292152f7f51 100644 (file)
--- a/error.h
+++ b/error.h
@@ -347,7 +347,6 @@ extern const char **para_errlist[];
 
 
 #define DCCP_SEND_ERRORS \
-       PARA_ERROR(DCCP_WRITE, "dccp write error"), \
 
 
 #define FD_ERRORS \