mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-14 21:20:06 +00:00
fix -Wstrict-prototypes issues
This commit is contained in:
committed by
ccollins476ad
parent
b2289a008f
commit
aa87f447d0
@@ -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