samples, tests: cleanup void main usage.
Some samples, tests got missed in the switch from void main() to int main(). Cleanup those samples/tests to use int main(). Signed-off-by: Kumar Gala <kumar.gala@intel.com>
This commit is contained in:
parent
e1fabfa9a4
commit
340ed20c12
10 changed files with 49 additions and 29 deletions
|
@ -10,7 +10,7 @@
|
|||
#include <zephyr/kernel.h>
|
||||
#include <stdio.h>
|
||||
|
||||
void main(void)
|
||||
int main(void)
|
||||
{
|
||||
printf("Waiting...\n");
|
||||
k_sleep(K_SECONDS(1));
|
||||
|
@ -22,4 +22,6 @@ void main(void)
|
|||
} else {
|
||||
printf("Error, failed to set boot mode: %d\n", rc);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue