X-Git-Url: https://gapil.gnulinux.it/gitweb/?a=blobdiff_plain;f=sources%2FTCP_echod_first.c;h=31d0ded800ef17cb50ce76f02e6c16d9c5192415;hb=4d8005673a429c8d47d1b21b84aa839afdf17dda;hp=31e3c16c70a379990b06b17fd11dc398b8a72822;hpb=31f55ec58bee8b2c4993633849b7da4e30cab222;p=gapil.git diff --git a/sources/TCP_echod_first.c b/sources/TCP_echod_first.c index 31e3c16..31d0ded 100644 --- a/sources/TCP_echod_first.c +++ b/sources/TCP_echod_first.c @@ -33,12 +33,12 @@ */ #include /* primitive system data types */ #include /* unix standard library */ -#include /* IP addresses conversion utiliites */ +#include /* IP addresses conversion utilities */ #include /* socket constants, types and functions */ #include /* standard I/O library */ #include /* date and time constants, types and functions */ #include /* syslog system functions */ -#include /* signal functions */ +#include /* signal constants, types and functions */ #include /* error definitions and routines */ #include /* C strings library */ #include /* C standard library */ @@ -139,7 +139,6 @@ int main(int argc, char *argv[]) /* handle echo to client */ while (1) { /* accept connection */ - len = sizeof(cli_add); if ( (conn_fd = accept(list_fd, NULL, NULL)) < 0) { PrintErr("accept error"); exit(1);