diff options
-rw-r--r-- | utests/utest_run.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utests/utest_run.cpp b/utests/utest_run.cpp index 94fbbee0..cd4356a9 100644 --- a/utests/utest_run.cpp +++ b/utests/utest_run.cpp @@ -69,7 +69,7 @@ int main(int argc, char *argv[]) optarg = argv[1]; } - { + do { switch (c) { case 'c': @@ -111,7 +111,7 @@ int main(int argc, char *argv[]) usage(); exit(1); } - } while ((c = getopt_long (argc, argv, shortopts, longopts, NULL)) != -1) + } while ((c = getopt_long (argc, argv, shortopts, longopts, NULL)) != -1); cl_ocl_destroy(); } |