tools: Mass fixing of empty prototypes (for -Wstrict-prototypes)
This commit is contained in:
@@ -76,7 +76,7 @@ esp_err_t _http_event_handler(esp_http_client_event_t *evt)
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
static void http_rest_with_url()
|
||||
static void http_rest_with_url(void)
|
||||
{
|
||||
esp_http_client_config_t config = {
|
||||
.url = "http://httpbin.org/get",
|
||||
@@ -160,7 +160,7 @@ static void http_rest_with_url()
|
||||
esp_http_client_cleanup(client);
|
||||
}
|
||||
|
||||
static void http_rest_with_hostname_path()
|
||||
static void http_rest_with_hostname_path(void)
|
||||
{
|
||||
esp_http_client_config_t config = {
|
||||
.host = "httpbin.org",
|
||||
@@ -247,7 +247,7 @@ static void http_rest_with_hostname_path()
|
||||
}
|
||||
|
||||
|
||||
static void http_auth_basic()
|
||||
static void http_auth_basic(void)
|
||||
{
|
||||
esp_http_client_config_t config = {
|
||||
.url = "http://user:passwd@httpbin.org/basic-auth/user/passwd",
|
||||
@@ -267,7 +267,7 @@ static void http_auth_basic()
|
||||
esp_http_client_cleanup(client);
|
||||
}
|
||||
|
||||
static void http_auth_basic_redirect()
|
||||
static void http_auth_basic_redirect(void)
|
||||
{
|
||||
esp_http_client_config_t config = {
|
||||
.url = "http://user:passwd@httpbin.org/basic-auth/user/passwd",
|
||||
@@ -286,7 +286,7 @@ static void http_auth_basic_redirect()
|
||||
esp_http_client_cleanup(client);
|
||||
}
|
||||
|
||||
static void http_auth_digest()
|
||||
static void http_auth_digest(void)
|
||||
{
|
||||
esp_http_client_config_t config = {
|
||||
.url = "http://user:passwd@httpbin.org/digest-auth/auth/user/passwd/MD5/never",
|
||||
@@ -305,7 +305,7 @@ static void http_auth_digest()
|
||||
esp_http_client_cleanup(client);
|
||||
}
|
||||
|
||||
static void https_with_url()
|
||||
static void https_with_url(void)
|
||||
{
|
||||
esp_http_client_config_t config = {
|
||||
.url = "https://www.howsmyssl.com",
|
||||
@@ -325,7 +325,7 @@ static void https_with_url()
|
||||
esp_http_client_cleanup(client);
|
||||
}
|
||||
|
||||
static void https_with_hostname_path()
|
||||
static void https_with_hostname_path(void)
|
||||
{
|
||||
esp_http_client_config_t config = {
|
||||
.host = "www.howsmyssl.com",
|
||||
@@ -347,7 +347,7 @@ static void https_with_hostname_path()
|
||||
esp_http_client_cleanup(client);
|
||||
}
|
||||
|
||||
static void http_relative_redirect()
|
||||
static void http_relative_redirect(void)
|
||||
{
|
||||
esp_http_client_config_t config = {
|
||||
.url = "http://httpbin.org/relative-redirect/3",
|
||||
@@ -366,7 +366,7 @@ static void http_relative_redirect()
|
||||
esp_http_client_cleanup(client);
|
||||
}
|
||||
|
||||
static void http_absolute_redirect()
|
||||
static void http_absolute_redirect(void)
|
||||
{
|
||||
esp_http_client_config_t config = {
|
||||
.url = "http://httpbin.org/absolute-redirect/3",
|
||||
@@ -385,7 +385,7 @@ static void http_absolute_redirect()
|
||||
esp_http_client_cleanup(client);
|
||||
}
|
||||
|
||||
static void http_redirect_to_https()
|
||||
static void http_redirect_to_https(void)
|
||||
{
|
||||
esp_http_client_config_t config = {
|
||||
.url = "http://httpbin.org/redirect-to?url=https%3A%2F%2Fwww.howsmyssl.com",
|
||||
@@ -405,7 +405,7 @@ static void http_redirect_to_https()
|
||||
}
|
||||
|
||||
|
||||
static void http_download_chunk()
|
||||
static void http_download_chunk(void)
|
||||
{
|
||||
esp_http_client_config_t config = {
|
||||
.url = "http://httpbin.org/stream-bytes/8912",
|
||||
@@ -424,7 +424,7 @@ static void http_download_chunk()
|
||||
esp_http_client_cleanup(client);
|
||||
}
|
||||
|
||||
static void http_perform_as_stream_reader()
|
||||
static void http_perform_as_stream_reader(void)
|
||||
{
|
||||
char *buffer = malloc(MAX_HTTP_RECV_BUFFER + 1);
|
||||
if (buffer == NULL) {
|
||||
@@ -460,7 +460,7 @@ static void http_perform_as_stream_reader()
|
||||
free(buffer);
|
||||
}
|
||||
|
||||
static void https_async()
|
||||
static void https_async(void)
|
||||
{
|
||||
esp_http_client_config_t config = {
|
||||
.url = "https://postman-echo.com/post",
|
||||
@@ -492,7 +492,7 @@ static void https_async()
|
||||
esp_http_client_cleanup(client);
|
||||
}
|
||||
|
||||
static void https_with_invalid_url()
|
||||
static void https_with_invalid_url(void)
|
||||
{
|
||||
esp_http_client_config_t config = {
|
||||
.url = "https://not.existent.url",
|
||||
@@ -533,7 +533,7 @@ static void http_test_task(void *pvParameters)
|
||||
vTaskDelete(NULL);
|
||||
}
|
||||
|
||||
void app_main()
|
||||
void app_main(void)
|
||||
{
|
||||
esp_err_t ret = nvs_flash_init();
|
||||
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
|
||||
|
||||
Reference in New Issue
Block a user