1
1

Fixed an error when compiling on Ubuntu systems. Also fixed a small server memory leak.

Этот коммит содержится в:
sethdelliott 2010-07-01 21:21:04 +00:00
родитель efb7bbe44b
Коммит bfd0c25dba
3 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -341,8 +341,9 @@ parse_parameters(struct iperf_test *test)
break;
}
}
// XXX: optreset is not needed on ubuntu
#ifdef __APPLE__
optreset = 1;
#endif
optind = 0;
free(params);

Просмотреть файл

@ -284,10 +284,10 @@ iperf_run_server(struct iperf_test *test)
fprintf(stderr, "Unable to send SERVER_TERMINATE message to client\n");
}
}
exit(1);
return 0;
}
for (;;) {
for ( ; ; ) {
test->state = IPERF_START;
streams_accepted = 0;

Просмотреть файл

@ -223,7 +223,9 @@ main(int argc, char **argv)
}
/* For subsequent calls to getopt */
#ifdef __APPLE__
optreset = 1;
#endif
optind = 0;