altos: Switch all main() to return 'int'
authorKeith Packard <keithp@keithp.com>
Mon, 23 Sep 2019 19:39:42 +0000 (12:39 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 23 Sep 2019 19:44:33 +0000 (12:44 -0700)
Makes gcc happy

Signed-off-by: Keith Packard <keithp@keithp.com>
src/chaoskey-v1.0/ao_chaoskey.c
src/easymini-v1.0/ao_easymini.c
src/easymini-v2.0/ao_easymini.c
src/micropeak-v2.0/ao_micropeak.c
src/telefireeight-v1.0/ao_telefireeight.c
src/telefireeight-v2.0/ao_telefireeight.c
src/telefireone-v1.0/ao_telefireone.c
src/telefiretwo-v0.1/ao_telefiretwo.c
src/telemini-v3.0/ao_telemini.c

index 80f5a4b..4488208 100644 (file)
@@ -22,7 +22,8 @@
 #include <ao_trng_send.h>
 #include <ao_flash_readout.h>
 
-void main(void)
+int
+main(void)
 {
        ao_led_init();
        ao_clock_init();
index 6025219..05b2951 100644 (file)
@@ -19,7 +19,7 @@
 #include <ao.h>
 #include <ao_exti.h>
 
-void
+int
 main(void)
 {
        ao_clock_init();
index 7246cae..ae80c43 100644 (file)
@@ -19,7 +19,7 @@
 #include <ao.h>
 #include <ao_exti.h>
 
-void
+int
 main(void)
 {
        ao_clock_init();
index 1bf0999..f3fbc9f 100644 (file)
@@ -291,7 +291,7 @@ ao_hsi_init(void)
        stm_rcc.csr |= (1 << STM_RCC_CSR_RMVF);
 }
 
-void
+int
 main(void)
 {
        int i;
index 89541a0..b266cfe 100644 (file)
@@ -21,7 +21,7 @@
 #include <ao_exti.h>
 #include <ao_radio_cmac_cmd.h>
 
-void
+int
 main(void)
 {
        ao_clock_init();
index 89541a0..b266cfe 100644 (file)
@@ -21,7 +21,7 @@
 #include <ao_exti.h>
 #include <ao_radio_cmac_cmd.h>
 
-void
+int
 main(void)
 {
        ao_clock_init();
index 7340e0f..d9c6586 100644 (file)
@@ -35,7 +35,7 @@ const struct ao_cmds ao_firetwo_cmds[] = {
         { 0,    NULL },
 };
 
-void
+int
 main(void)
 {
        ao_clock_init();
index 89541a0..b266cfe 100644 (file)
@@ -21,7 +21,7 @@
 #include <ao_exti.h>
 #include <ao_radio_cmac_cmd.h>
 
-void
+int
 main(void)
 {
        ao_clock_init();
index 66f75f0..bb3bc05 100644 (file)
@@ -34,7 +34,7 @@ ao_check_recovery(void)
        ao_disable_port(AO_RECOVERY_PORT);
 }
 
-void
+int
 main(void)
 {
        ao_check_recovery();