diff options
Diffstat (limited to 'tests/virtsock/virtsock_server_mcast_bidir.c')
-rw-r--r-- | tests/virtsock/virtsock_server_mcast_bidir.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/virtsock/virtsock_server_mcast_bidir.c b/tests/virtsock/virtsock_server_mcast_bidir.c index b3366315..8a3bfddc 100644 --- a/tests/virtsock/virtsock_server_mcast_bidir.c +++ b/tests/virtsock/virtsock_server_mcast_bidir.c @@ -11,6 +11,7 @@ #include <errno.h> #include <fcntl.h> #include <strings.h> +#include <limits.h> #include "mcast_sock.h" @@ -29,7 +30,7 @@ int main(void) perror("Error initializing bidirectional sock"); } - while (++i) { + while (++i <= INT_MAX) { char *ibuf; strcpy(tx_buf, "MSG NR."); asprintf(&ibuf, "%d", i); @@ -51,4 +52,5 @@ int main(void) perror("Error closing sockets."); } + return 0; } |