In write_socket(), remove the write-only variable write_len in an ifdef __OS2__ block.
authorFabian Keil <fk@fabiankeil.de>
Sun, 13 Jun 2010 12:30:10 +0000 (12:30 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sun, 13 Jun 2010 12:30:10 +0000 (12:30 +0000)
Spotted by cppcheck.

jbsockets.c

index 7ede596..ef5e067 100644 (file)
@@ -1,4 +1,4 @@
-const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.74 2010/06/13 12:28:27 fabiankeil Exp $";
+const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.75 2010/06/13 12:29:05 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jbsockets.c,v $
@@ -511,7 +511,7 @@ int write_socket(jb_socket fd, const char *buf, size_t len)
     */
 #define SOCKET_SEND_MAX 65000
    {
-      int write_len = 0, send_len, send_rc = 0, i = 0;
+      int send_len, send_rc = 0, i = 0;
       while ((i < len) && (send_rc != -1))
       {
          if ((i + SOCKET_SEND_MAX) > len)