about summary refs log tree commit diff
path: root/benchtests/bench-skeleton.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-05-10 17:44:27 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-05-10 17:44:27 +0530
commit5c637fe5eee1d4fe42d9ef094b0b021fb56d3bab (patch)
tree399b5dd350203c4f193cc21d80877e5ea289f790 /benchtests/bench-skeleton.c
parentab2b94613d85ba9edc659bd5e930b9ab1ec8e8a9 (diff)
downloadglibc-5c637fe5eee1d4fe42d9ef094b0b021fb56d3bab.tar.gz
glibc-5c637fe5eee1d4fe42d9ef094b0b021fb56d3bab.tar.xz
glibc-5c637fe5eee1d4fe42d9ef094b0b021fb56d3bab.zip
Fix coding style
Diffstat (limited to 'benchtests/bench-skeleton.c')
-rw-r--r--benchtests/bench-skeleton.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/benchtests/bench-skeleton.c b/benchtests/bench-skeleton.c
index a13ad02177..404900bd64 100644
--- a/benchtests/bench-skeleton.c
+++ b/benchtests/bench-skeleton.c
@@ -23,7 +23,9 @@
 #include <inttypes.h>
 
 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;
 }