aboutsummaryrefslogtreecommitdiffstats
path: root/utils/benchmark
diff options
context:
space:
mode:
authorGarrett Cooper <yanegomi@gmail.com>2010-12-19 09:58:10 -0800
committerGarrett Cooper <yanegomi@gmail.com>2010-12-19 09:58:10 -0800
commit1e6f5a673655551de5734ff31ef48cd63b604e6d (patch)
treea8faf04ed2df6da929c9db820c22c53a81c6153a /utils/benchmark
parent40d9ee225d8080f03d4f3380fa355a5f9a322f2f (diff)
downloadplatform_external_ltp-1e6f5a673655551de5734ff31ef48cd63b604e6d.tar.gz
platform_external_ltp-1e6f5a673655551de5734ff31ef48cd63b604e6d.tar.bz2
platform_external_ltp-1e6f5a673655551de5734ff31ef48cd63b604e6d.zip
Resolving all compile errors via a script
This may leave dupe calls to tst_exit in main, but those are easier to deal (and much less) than no-compile scenarios. As a side-effect, fix all trailing whitespace issues. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Diffstat (limited to 'utils/benchmark')
-rw-r--r--utils/benchmark/ebizzy-0.3/ebizzy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/benchmark/ebizzy-0.3/ebizzy.c b/utils/benchmark/ebizzy-0.3/ebizzy.c
index 4fe94e065..7c2c2c134 100644
--- a/utils/benchmark/ebizzy-0.3/ebizzy.c
+++ b/utils/benchmark/ebizzy-0.3/ebizzy.c
@@ -315,7 +315,7 @@ allocate(void)
if (use_holes)
for (i = 0; i < chunks; i++)
free_mem(hole_mem[i], page_size);
-
+
if (verbose)
printf("Allocated memory\n");
}
@@ -404,7 +404,7 @@ search_mem(void)
if (touch_pages) {
touch_mem((char *) copy, copy_size);
} else {
-
+
if (no_lib_memcpy)
my_memcpy(copy, src, copy_size);
else
@@ -419,7 +419,7 @@ search_mem(void)
else
found = bsearch(&key, copy, copy_size / record_size,
record_size, compare);
-
+
/* Below check is mainly for memory corruption or other bug */
if (found == NULL) {
fprintf(stderr, "Couldn't find key %zd\n", key);
@@ -533,4 +533,4 @@ main(int argc, char *argv[])
start_threads();
return 0;
-}
+} \ No newline at end of file