From 3d272fea44546c3579e347e786c3a5a9f5066b6a Mon Sep 17 00:00:00 2001 From: Homer Hsing Date: Thu, 31 Oct 2013 16:36:32 +0800 Subject: [PATCH] fix ill-coded utest_run::main Signed-off-by: Homer Hsing Reviewed-by: Zhigang Gong --- utests/utest_run.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utests/utest_run.cpp b/utests/utest_run.cpp index 94fbbee..cd4356a 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(); } -- 2.7.4