Moved global variable heights to ia32_common_transform.
[libfirm] / ir / be / test / Queens.c
index c0f4db5..f7eadad 100644 (file)
@@ -32,7 +32,7 @@ static int myabs(int i) {
   return(i);
 }
 
-boolean place_ok (int i) {
+static boolean place_ok (int i) {
   // return whether queen in column i is
   // not in check from queens left of it
   int j = 0;
@@ -49,7 +49,7 @@ boolean place_ok (int i) {
   return(res);
 }
 
-int solve (int n) {
+static int solve (int n) {
   // return the number of solutions to the n-queens problem
   int c = 0;
   int res = 0;
@@ -78,7 +78,7 @@ int solve (int n) {
 }
 
 static void usage (const char *progname) {
-  printf("usage: %s\n", progname);
+  printf("usage: %s [n]\n", progname);
 }