Memtest86+: Fix non-ANSI C function declarations

Change function declarations with an empty parameter list to (void).

Change-Id: Ib1106ed6b52c4038125ff5512f5aef3ccb809e89
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/14177
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-by: Ben Gardner <gardner.ben@gmail.com>
diff --git a/config.c b/config.c
index 55ed52e..fb0066f 100644
--- a/config.c
+++ b/config.c
@@ -29,7 +29,7 @@
 char pop_save_buffer_1[2][POP_H][POP_W];
 char pop_save_buffer_2[2][POP2_H][POP2_W];
 
-void get_config()
+void get_config(void)
 {
 	int flag = 0, sflag = 0, i, j, k, n, m, prt = 0;
 	int reprint_screen = 0;
diff --git a/cpuid.c b/cpuid.c
index 088d8f3..250a7aa 100644
--- a/cpuid.c
+++ b/cpuid.c
@@ -9,7 +9,7 @@
 
 struct cpu_ident cpu_id;
 
-void get_cpuid()
+void get_cpuid(void)
 {
 	unsigned int *v, dummy[3];
 	char *p, *q;
diff --git a/init.c b/init.c
index b419398..3aa4d97 100644
--- a/init.c
+++ b/init.c
@@ -1016,7 +1016,7 @@
 #define STEST_ADDR 0x100000	/* Measure memory speed starting at 1MB */
 
 /* Measure and display CPU and cache sizes and speeds */
-void cpu_cache_speed()
+void cpu_cache_speed(void)
 {
 	int i, off = 4;
 	ulong speed;
diff --git a/lib.c b/lib.c
index a34fefa..678118a 100644
--- a/lib.c
+++ b/lib.c
@@ -600,7 +600,7 @@
 	}
 }
 
-int get_key() {
+int get_key(void) {
 	int c;
 
 	c = inb(0x64);
@@ -655,7 +655,7 @@
 	}
 }
 
-void footer()
+void footer(void)
 {
 	cprint(24, 0, "(ESC)exit  (c)configuration  (SP)scroll_lock  (CR)scroll_unlock");
 	if (slock) {
@@ -1195,4 +1195,4 @@
 		   return;
 		}
 	}
-}
\ No newline at end of file
+}
diff --git a/main.c b/main.c
index a3b08a7..606c4f0 100644
--- a/main.c
+++ b/main.c
@@ -99,7 +99,7 @@
 volatile static struct pmap winx;  	/* Window struct for mapping windows */
 
 /* Find the next selected test to run */
-void next_test()
+void next_test(void)
 {
 	test++;
 	while (tseq[test].sel == 0 && tseq[test].cpu_sel != 0) {
@@ -118,7 +118,7 @@
 }
 
 /* Set default values for all parameters */
-void set_defaults()
+void set_defaults(void)
 {
 	int i;
 
@@ -374,7 +374,7 @@
 	cmdline_parsed = 1;
 }
 
-void clear_screen()
+void clear_screen(void)
 {
 	int i;
 	char *pp;
@@ -790,7 +790,7 @@
 }
 
 
-void test_setup()
+void test_setup(void)
 {
 	static int ltest = -1;
 
diff --git a/memsize.c b/memsize.c
index f30888c..53c2bc6 100644
--- a/memsize.c
+++ b/memsize.c
@@ -115,7 +115,7 @@
 	}
 	v->msegs = n;
 }
-static void memsize_820()
+static void memsize_820(void)
 {
 	int i, n, nr;
 	struct e820entry nm[E820MAX];
diff --git a/screen_buffer.c b/screen_buffer.c
index a301988..eb7cdc2 100644
--- a/screen_buffer.c
+++ b/screen_buffer.c
@@ -48,7 +48,7 @@
     screen_buf[y][x] = val;
 }
 
-void clear_screen_buf()
+void clear_screen_buf(void)
 {
     int y, x;
 
diff --git a/smp.c b/smp.c
index 64d53b7..b17486e 100644
--- a/smp.c
+++ b/smp.c
@@ -29,7 +29,7 @@
 
 struct barrier_s *barr;
 
-void smp_find_cpus();
+void smp_find_cpus(void);
 
 void barrier_init(int max)
 {
@@ -52,7 +52,7 @@
         barr->s_st2.slock = 0;
 }
 
-void barrier()
+void barrier(void)
 {
 	if (num_cpus == 1 || v->fail_safe & 3) {
 		return;
@@ -76,7 +76,7 @@
         }
 }
 
-void s_barrier()
+void s_barrier(void)
 {
 	if (run_cpus == 1 || v->fail_safe & 3) {
 		return;
@@ -499,7 +499,7 @@
  *               good:
  *		   setup config, return
  */
-void smp_find_cpus()
+void smp_find_cpus(void)
 {
    floating_pointer_struct_t *fp;
    rsdp_t *rp;
@@ -624,7 +624,7 @@
     }
 }
 
-unsigned my_apic_id()
+unsigned my_apic_id(void)
 {
    return (APIC[APICR_ID][0]) >> 24;
 }
@@ -652,7 +652,7 @@
    }
 }
 
-unsigned smp_my_cpu_num()
+unsigned smp_my_cpu_num(void)
 {
    unsigned apicid = my_apic_id();
    unsigned i;