| @@ -154,7 +154,7 @@ main (int argc, char *argv[]) | |||||
| {0, 0, 0, 0} | {0, 0, 0, 0} | ||||
| }; | }; | ||||
| while ((opt = getopt_long (argc, argv, options, long_options, &option_index)) != EOF) { | |||||
| while ((opt = getopt_long (argc, argv, options, long_options, &option_index)) != -1) { | |||||
| switch (opt) { | switch (opt) { | ||||
| case 'f': | case 'f': | ||||
| if ((freq = atoi (optarg)) <= 0) { | if ((freq = atoi (optarg)) <= 0) { | ||||
| @@ -73,7 +73,7 @@ main (int argc, char *argv[]) | |||||
| {0, 0, 0, 0} | {0, 0, 0, 0} | ||||
| }; | }; | ||||
| while ((opt = getopt_long (argc, argv, options, long_options, &option_index)) != EOF) { | |||||
| while ((opt = getopt_long (argc, argv, options, long_options, &option_index)) != -1) { | |||||
| switch (opt) { | switch (opt) { | ||||
| @@ -153,9 +153,10 @@ int main(int argc, char *argv[]) | |||||
| struct option long_options[] = { | struct option long_options[] = { | ||||
| {"driver", 1, 0, 'd'}, | {"driver", 1, 0, 'd'}, | ||||
| {"client", 1, 0, 'c'}, | {"client", 1, 0, 'c'}, | ||||
| {0, 0, 0, 0} | |||||
| }; | }; | ||||
| while ((opt = getopt_long (argc, argv, options, long_options, &option_index)) != EOF) { | |||||
| while ((opt = getopt_long (argc, argv, options, long_options, &option_index)) != -1) { | |||||
| switch (opt) { | switch (opt) { | ||||
| case 'd': | case 'd': | ||||
| driver_name = optarg; | driver_name = optarg; | ||||