Remove a few fprintf stms for debug YAZ-795
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 22 Oct 2014 17:14:18 +0000 (19:14 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 22 Oct 2014 17:14:18 +0000 (19:14 +0200)
src/tcpip.c

index 21fa041..a14f66e 100644 (file)
@@ -503,11 +503,7 @@ static struct addrinfo *create_net_socket(COMSTACK h)
         }
         if (r)
         {
-            int xerrno = errno;
-            if (xerrno == EINVAL)
-                fprintf(stderr, "bind returned EINVAL\n");
-            fprintf(stderr, "bind failed errno=%d %s\n", xerrno,
-                    strerror(xerrno));
+            h->cerrno = CSYSERR;
             freeaddrinfo(ai);
             return 0;
         }