Update dynomite.c
Converting infinite for loop to a deterministic while loop, while parsing command line arguments.
@@ -338,13 +338,9 @@ dn_get_options(int argc, char **argv, struct instance *nci)
opterr = 0;
- for (;;) {
+ c = 0;
+ while (c != -1) {
c = getopt_long(argc, argv, short_options, long_options, NULL);
- if (c == -1) {
- /* no more options */
- break;
- }
-
switch (c) {
case 'h':
show_version = 1;
