fix -Wstrict-prototypes issues

This commit is contained in:
Anton Maklakov
2019-08-01 09:54:58 -07:00
committed by ccollins476ad
parent b2289a008f
commit aa87f447d0
10 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -1336,7 +1336,7 @@ fail:
BTP_STATUS_FAILED);
}
static void read_destroy()
static void read_destroy(void)
{
gatt_buf_clear();
}
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;
+4 -4
View File
@@ -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;
}
+5 -5
View File
@@ -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);
+3 -3
View File
@@ -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--)
+1 -1
View File
@@ -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,