aboutsummaryrefslogtreecommitdiff
path: root/cmake/stack_direction.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/stack_direction.c')
-rw-r--r--cmake/stack_direction.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmake/stack_direction.c b/cmake/stack_direction.c
index 11bcf803bfa..4797d8e14e7 100644
--- a/cmake/stack_direction.c
+++ b/cmake/stack_direction.c
@@ -1,5 +1,5 @@
/* Copyright (C) 2009 Sun Microsystems, Inc
-
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
@@ -14,17 +14,17 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
/* Check stack direction (0-down, 1-up) */
-int f(int *a)
+int f(int *a)
{
int b;
- return(&b > a)?1:0;
+ return(&b > a)?1:0;
}
/*
- Prevent compiler optimizations by calling function
+ Prevent compiler optimizations by calling function
through pointer.
*/
volatile int (*ptr_f)(int *) = f;
-int main()
+int main()
{
int a;
return ptr_f(&a);