Altre correzioni alle funzioni, con riscrittura di ip_ntop per usare switch,
[gapil.git] / listati / TCP_echo_fifth.c
index 2f219027ec5cf9871cd02c2a95e3d6906d3a837c..d3e383c59f43e7137b919341d28e5edd812a5b5a 100644 (file)
@@ -8,7 +8,6 @@ int main(int argc, char *argv[])
     ...
     /* call sockaddr to get a connected socket */
     if ( (sock = sockconn(argv[optind], "echo", 6, SOCK_STREAM)) < 0) {
-       if (errno) perror("Socket creation error");
        return 1;
     }
     /* do read/write operations */