Remove a few fprintf stms for debug YAZ-795
[yaz-moved-to-github.git] / 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;
         }