Always return a consistent value.

This commit is contained in:
Oliver Schmidt 2020-04-15 21:25:23 +02:00
parent 6971e9216f
commit bbd2906f6f
3 changed files with 9 additions and 5 deletions

View File

@ -32,7 +32,7 @@ void confirm_exit(void)
cgetc();
}
void main(void)
int main(void)
{
uint8_t eth_init = ETH_INIT_DEFAULT;
uint32_t server;
@ -97,4 +97,6 @@ void main(void)
time.tv_nsec = 0;
clock_settime(CLOCK_REALTIME, &time);
return EXIT_SUCCESS;
}

View File

@ -285,7 +285,7 @@ void error_exit(void)
exit(EXIT_FAILURE);
}
void main(void)
int main(void)
{
char cwd[FILENAME_MAX];
unsigned char eth_init = ETH_INIT_DEFAULT;
@ -331,4 +331,5 @@ void main(void)
httpd_start(80, http_server);
chdir(cwd);
return EXIT_SUCCESS;
}

View File

@ -92,7 +92,7 @@ void input(char* str, unsigned int max, const char* tag)
}
}
void main()
int main(void)
{
int retval;
uint8_t eth_init = ETH_INIT_DEFAULT;
@ -120,7 +120,7 @@ void main()
if (*key == '\0')
{
printf("\n");
return;
return EXIT_FAILURE;
}
printf("\n\nSaving key ");
@ -175,7 +175,7 @@ void main()
if (*text == '\0')
{
printf("\n");
return;
return EXIT_FAILURE;
}
printf("\n\nSending tweet ");
@ -191,4 +191,5 @@ void main()
exit(EXIT_FAILURE);
}
printf("- Ok\n");
return EXIT_SUCCESS;
}