From 5c637fe5eee1d4fe42d9ef094b0b021fb56d3bab Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Fri, 10 May 2013 17:44:27 +0530 Subject: Fix coding style --- benchtests/bench-skeleton.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'benchtests') diff --git a/benchtests/bench-skeleton.c b/benchtests/bench-skeleton.c index a13ad02..404900b 100644 --- a/benchtests/bench-skeleton.c +++ b/benchtests/bench-skeleton.c @@ -23,7 +23,9 @@ #include volatile unsigned int dontoptimize = 0; -void startup () + +void +startup (void) { /* This loop should cause CPU to switch to maximal freqency. This makes subsequent measurement more accurate. We need a side effect @@ -31,9 +33,7 @@ void startup () This should be enough to cause CPU to speed up and it is simpler than running loop for constant time. This is used when user does not have root access to set a constant freqency. */ - - int k; - for (k = 0; k < 10000000; k++) + for (int k = 0; k < 10000000; k++) dontoptimize += 23 * dontoptimize + 2; } -- cgit v1.1