mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-06 05:14:45 +00:00
fix -Wstrict-prototypes issues
This commit is contained in:
committed by
Prasad Alatkar
parent
aabf20ae5a
commit
13735665ff
@@ -147,7 +147,7 @@ blecsc_advertise(void)
|
||||
* 10^6 * speed [kph]
|
||||
*/
|
||||
static void
|
||||
blecsc_simulate_speed_and_cadence()
|
||||
blecsc_simulate_speed_and_cadence(void)
|
||||
{
|
||||
uint16_t wheel_rev_period;
|
||||
uint16_t crank_rev_period;
|
||||
|
||||
@@ -1336,7 +1336,7 @@ fail:
|
||||
BTP_STATUS_FAILED);
|
||||
}
|
||||
|
||||
static void read_destroy()
|
||||
static void read_destroy(void)
|
||||
{
|
||||
gatt_buf_clear();
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ static void unstalled_cb(uint16_t conn_handle, struct ble_l2cap_chan *chan,
|
||||
}
|
||||
}
|
||||
|
||||
static struct channel *get_free_channel()
|
||||
static struct channel *get_free_channel(void)
|
||||
{
|
||||
u8_t i;
|
||||
struct channel *chan;
|
||||
|
||||
@@ -568,7 +568,7 @@ extern uint32_t g_bletest_IVs;
|
||||
#endif
|
||||
|
||||
#if MYNEWT_VAL(BLE_LL_DIRECT_TEST_MODE)
|
||||
void ble_ll_dtm_init();
|
||||
void ble_ll_dtm_init(void);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -329,7 +329,7 @@ populate_db_from_nvs(int obj_type, void *dst, int *db_num)
|
||||
* the keys in database may get lost.
|
||||
*/
|
||||
static int
|
||||
ble_nvs_restore_sec_keys()
|
||||
ble_nvs_restore_sec_keys(void)
|
||||
{
|
||||
esp_err_t err;
|
||||
|
||||
@@ -362,7 +362,7 @@ ble_nvs_restore_sec_keys()
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ble_store_config_persist_cccds()
|
||||
int ble_store_config_persist_cccds(void)
|
||||
{
|
||||
int nvs_count, nvs_idx;
|
||||
union ble_store_value val;
|
||||
@@ -388,7 +388,7 @@ int ble_store_config_persist_cccds()
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ble_store_config_persist_peer_secs()
|
||||
int ble_store_config_persist_peer_secs(void)
|
||||
{
|
||||
int nvs_count, nvs_idx;
|
||||
union ble_store_value val;
|
||||
@@ -414,7 +414,7 @@ int ble_store_config_persist_peer_secs()
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ble_store_config_persist_our_secs()
|
||||
int ble_store_config_persist_our_secs(void)
|
||||
{
|
||||
int nvs_count, nvs_idx;
|
||||
union ble_store_value val;
|
||||
@@ -440,7 +440,7 @@ int ble_store_config_persist_our_secs()
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ble_store_config_conf_init()
|
||||
void ble_store_config_conf_init(void)
|
||||
{
|
||||
esp_err_t err;
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "ble_hs_test_util.h"
|
||||
|
||||
static int
|
||||
ble_hs_conn_test_util_any()
|
||||
ble_hs_conn_test_util_any(void)
|
||||
{
|
||||
struct ble_hs_conn *conn;
|
||||
|
||||
|
||||
@@ -591,7 +591,7 @@ ble_hci_uart_rx_skip_cmd(uint8_t data)
|
||||
|
||||
#if MYNEWT_VAL(BLE_HOST)
|
||||
static inline void
|
||||
ble_hci_uart_rx_evt_cb()
|
||||
ble_hci_uart_rx_evt_cb(void)
|
||||
{
|
||||
int rc;
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ void on_callout(struct ble_npl_event *ev)
|
||||
* ble_npl_callout_init(struct ble_npl_callout *c, struct ble_npl_eventq *evq,
|
||||
* ble_npl_event_fn *ev_cb, void *ev_arg)
|
||||
*/
|
||||
int test_init()
|
||||
int test_init(void)
|
||||
{
|
||||
ble_npl_callout_init(&s_callout,
|
||||
&s_eventq,
|
||||
@@ -65,19 +65,19 @@ int test_init()
|
||||
return PASS;
|
||||
}
|
||||
|
||||
int test_queued()
|
||||
int test_queued(void)
|
||||
{
|
||||
//VerifyOrQuit(ble_npl_callout_queued(&s_callout),
|
||||
// "callout: not queued when expected");
|
||||
return PASS;
|
||||
}
|
||||
|
||||
int test_reset()
|
||||
int test_reset(void)
|
||||
{
|
||||
return ble_npl_callout_reset(&s_callout, TEST_INTERVAL);
|
||||
}
|
||||
|
||||
int test_stop()
|
||||
int test_stop(void)
|
||||
{
|
||||
return PASS;
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ void on_event(struct ble_npl_event *ev)
|
||||
s_tests_running = false;
|
||||
}
|
||||
|
||||
int test_init()
|
||||
int test_init(void)
|
||||
{
|
||||
//VerifyOrQuit(!ble_npl_eventq_inited(&s_eventq), "eventq: empty q initialized");
|
||||
ble_npl_eventq_init(&s_eventq);
|
||||
@@ -67,7 +67,7 @@ int test_init()
|
||||
return PASS;
|
||||
}
|
||||
|
||||
int test_run()
|
||||
int test_run(void)
|
||||
{
|
||||
while (s_tests_running)
|
||||
{
|
||||
@@ -77,7 +77,7 @@ int test_run()
|
||||
return PASS;
|
||||
}
|
||||
|
||||
int test_put()
|
||||
int test_put(void)
|
||||
{
|
||||
s_event.ev_cb = on_event;
|
||||
s_event.ev_arg = &s_event_args;
|
||||
@@ -85,13 +85,13 @@ int test_put()
|
||||
return PASS;
|
||||
}
|
||||
|
||||
int test_get_no_wait()
|
||||
int test_get_no_wait(void)
|
||||
{
|
||||
//struct ble_npl_event *ev = ble_npl_eventq_get_no_wait(&s_eventq);
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
int test_get()
|
||||
int test_get(void)
|
||||
{
|
||||
struct ble_npl_event *ev = ble_npl_eventq_get(&s_eventq,
|
||||
BLE_NPL_WAIT_FOREVER);
|
||||
|
||||
@@ -37,7 +37,7 @@ static void *s_memblock[TEST_MEMPOOL_BLOCKS];
|
||||
* int block_size, void *membuf, char *name);
|
||||
*
|
||||
*/
|
||||
int test_init()
|
||||
int test_init(void)
|
||||
{
|
||||
int err;
|
||||
err = ble_npl_mempool_init(NULL,
|
||||
@@ -60,7 +60,7 @@ int test_init()
|
||||
*
|
||||
* bool ble_npl_mempool_is_sane(const struct ble_npl_mempool *mp);
|
||||
*/
|
||||
int test_is_sane()
|
||||
int test_is_sane(void)
|
||||
{
|
||||
return (ble_npl_mempool_is_sane(&s_mempool)) ? PASS : FAIL;
|
||||
}
|
||||
@@ -75,7 +75,7 @@ int test_is_sane()
|
||||
*
|
||||
* int ble_npl_memblock_from(const struct ble_npl_mempool *mp, const void *block_addr);
|
||||
*/
|
||||
int test_stress()
|
||||
int test_stress(void)
|
||||
{
|
||||
int loops = 3;
|
||||
while(loops--)
|
||||
|
||||
@@ -67,7 +67,7 @@ void *task1_run(void *args)
|
||||
* ble_npl_stack_t *stack_bottom, uint16_t stack_size)
|
||||
*
|
||||
*/
|
||||
int test_init()
|
||||
int test_init(void)
|
||||
{
|
||||
int err;
|
||||
err = ble_npl_task_init(NULL,
|
||||
|
||||
Reference in New Issue
Block a user