tools: Mass fixing of empty prototypes (for -Wstrict-prototypes)

This commit is contained in:
Anton Maklakov
2019-08-01 16:28:56 +07:00
parent 50629eec27
commit afbaf74007
507 changed files with 1295 additions and 1295 deletions
@@ -178,7 +178,7 @@ static void gatts_profile_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_
}
}
simple_ble_cfg_t *simple_ble_init()
simple_ble_cfg_t *simple_ble_init(void)
{
simple_ble_cfg_t *ble_cfg_p = (simple_ble_cfg_t *) malloc(sizeof(simple_ble_cfg_t));
if (ble_cfg_p == NULL) {
@@ -188,7 +188,7 @@ simple_ble_cfg_t *simple_ble_init()
return ble_cfg_p;
}
esp_err_t simple_ble_deinit()
esp_err_t simple_ble_deinit(void)
{
free(g_ble_cfg_p->gatt_db);
free(g_ble_cfg_p);
@@ -262,7 +262,7 @@ esp_err_t simple_ble_start(simple_ble_cfg_t *cfg)
return ESP_OK;
}
esp_err_t simple_ble_stop()
esp_err_t simple_ble_stop(void)
{
esp_err_t err;
ESP_LOGD(TAG, "Free mem at start of simple_ble_stop %d", esp_get_free_heap_size());
@@ -67,7 +67,7 @@ typedef struct {
*
* @return simple_ble_cfg_t* Pointer to configuration structure
*/
simple_ble_cfg_t *simple_ble_init();
simple_ble_cfg_t *simple_ble_init(void);
/** Deallocates memory
*
@@ -75,7 +75,7 @@ simple_ble_cfg_t *simple_ble_init();
*
* @return ESP_OK
*/
esp_err_t simple_ble_deinit();
esp_err_t simple_ble_deinit(void);
/** Starts BLE service
*
@@ -97,7 +97,7 @@ esp_err_t simple_ble_start(simple_ble_cfg_t *cfg);
*
* @return ESP_OK on success, and appropriate error code for failure
*/
esp_err_t simple_ble_stop();
esp_err_t simple_ble_stop(void);
/** Convert handle to 128 bit UUID of characteristic
*