Browse Source

configurator: Fix unused parameters

Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
Jon Griffiths 9 years ago
parent
commit
c5ebb47c6c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tools/configurator/configurator.c

+ 2 - 2
tools/configurator/configurator.c

@@ -330,7 +330,7 @@ static struct test tests[] = {
 	  "	setcontext(&b);\n"
 	  "	setcontext(&b);\n"
 	  "	x |= 4;\n"
 	  "	x |= 4;\n"
 	  "}\n"
 	  "}\n"
-	  "int main(int argc, char *argv[]) {\n"
+	  "int main(void) {\n"
 	  "	x |= 1;\n"
 	  "	x |= 1;\n"
 	  "	getcontext(&a);\n"
 	  "	getcontext(&a);\n"
 	  "	a.uc_stack.ss_sp = stack;\n"
 	  "	a.uc_stack.ss_sp = stack;\n"
@@ -354,7 +354,7 @@ static struct test tests[] = {
 	  "		worked = 1;\n"
 	  "		worked = 1;\n"
 	  "	setcontext(&b);\n"
 	  "	setcontext(&b);\n"
 	  "}\n"
 	  "}\n"
-	  "int main(int argc, char *argv[]) {\n"
+	  "int main(void) {\n"
 	  "	void *ap = &worked;\n"
 	  "	void *ap = &worked;\n"
 	  "	void *aq = (void *)(~((ptrdiff_t)ap));\n"
 	  "	void *aq = (void *)(~((ptrdiff_t)ap));\n"
 	  "	getcontext(&a);\n"
 	  "	getcontext(&a);\n"