refactor pre-increment to more idiomatic post-increment (fix #282)

This commit is contained in:
yrutschle committed 2021-03-03 14:29:25 +01:00
1 parent be4e126f3a
commit 49d4080afd
1 file changed
+1 -1
+1 -1
View File
@@ -185,7 +185,7 @@ void tcp_listener(struct listen_endpoint* endpoint, int num_endpoints, int activ
case 0: /* In child process */
/* Shoveler processes don't need to hog file descriptors */
for (i = 0; i < num_endpoints; ++i)
for (i = 0; i < num_endpoints; i++)
close(endpoint[i].socketfd);
start_shoveler(in_socket);
exit(0);