X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=listati%2Fpoll_echod.c;h=87eeb9f084ed65040a9c77fd186f41206aa4d74b;hp=8efef2f2719c07a904266c0b158cd8bb3f9f1ca8;hb=fbaf3a4f4f6fe16f6f2233f7165bbfa77557e32e;hpb=0605ed025fd00ee41a7515b778bc686a6044f059 diff --git a/listati/poll_echod.c b/listati/poll_echod.c index 8efef2f..87eeb9f 100644 --- a/listati/poll_echod.c +++ b/listati/poll_echod.c @@ -1,15 +1,13 @@ - /* initialize all needed variables */ +... poll_set = (struct pollfd *) malloc(n * sizeof(struct pollfd)); max_fd = list_fd; /* maximum now is listening socket */ - for (i=0; i