Merge pull request #1536 from gebart/pr/function-prototypes
fix warning: function declaration isn't a prototype
This commit is contained in:
commit
df5ff896a8
|
@ -61,7 +61,7 @@ typedef struct coap_separate {
|
|||
|
||||
int coap_separate_handler(resource_t *resource, void *request,
|
||||
void *response);
|
||||
void coap_separate_reject();
|
||||
void coap_separate_reject(void);
|
||||
void coap_separate_accept(void *request, coap_separate_t *separate_store);
|
||||
void coap_separate_resume(void *response, coap_separate_t *separate_store,
|
||||
uint8_t code);
|
||||
|
|
|
@ -67,7 +67,7 @@ typedef struct coap_transaction {
|
|||
* Use snprintf(buf, len+1, "", ...) to completely fill payload */
|
||||
} coap_transaction_t;
|
||||
|
||||
void coap_register_as_transaction_handler();
|
||||
void coap_register_as_transaction_handler(void);
|
||||
|
||||
coap_transaction_t *coap_new_transaction(uint16_t mid, uip_ipaddr_t *addr,
|
||||
uint16_t port);
|
||||
|
@ -75,6 +75,6 @@ void coap_send_transaction(coap_transaction_t *t);
|
|||
void coap_clear_transaction(coap_transaction_t *t);
|
||||
coap_transaction_t *coap_get_transaction_by_mid(uint16_t mid);
|
||||
|
||||
void coap_check_transactions();
|
||||
void coap_check_transactions(void);
|
||||
|
||||
#endif /* COAP_TRANSACTIONS_H_ */
|
||||
|
|
|
@ -64,13 +64,13 @@ static unsigned char gcr_bits = 0;
|
|||
static unsigned short gcr_val = 0;
|
||||
|
||||
/* Call before starting encoding or decoding */
|
||||
void gcr_init() {
|
||||
void gcr_init(void) {
|
||||
gcr_val = 0;
|
||||
gcr_bits = 0;
|
||||
}
|
||||
|
||||
/* Use this to check if encoding / decoding is complete for now */
|
||||
unsigned char gcr_finished() {
|
||||
unsigned char gcr_finished(void) {
|
||||
return gcr_bits == 0;
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ void gcr_decode(unsigned char gcr_data) {
|
|||
}
|
||||
|
||||
/* check if the current decoded stream is correct */
|
||||
unsigned char gcr_valid() {
|
||||
unsigned char gcr_valid(void) {
|
||||
if (gcr_bits >= 10) {
|
||||
unsigned short val = gcr_val & 0x3ff;
|
||||
if ((GCR_decode[val >> 5u] << 4u) == 0xff ||
|
||||
|
|
|
@ -186,7 +186,7 @@ extern settings_status_t settings_delete(settings_key_t key, uint8_t index);
|
|||
typedef eeprom_addr_t settings_iter_t;
|
||||
|
||||
/** Will return \ref SETTINGS_INVALID_ITER if the settings store is empty. */
|
||||
extern settings_iter_t settings_iter_begin();
|
||||
extern settings_iter_t settings_iter_begin(void);
|
||||
|
||||
/** Will return \ref SETTINGS_INVALID_ITER if at the end of settings list. */
|
||||
extern settings_iter_t settings_iter_next(settings_iter_t iter);
|
||||
|
|
|
@ -79,7 +79,7 @@ static void double_interval(void *ptr);
|
|||
#if TRICKLE_TIMER_WIDE_RAND
|
||||
/* Returns a 4-byte wide, unsigned random number */
|
||||
static uint32_t
|
||||
wide_rand()
|
||||
wide_rand(void)
|
||||
{
|
||||
return ((uint32_t)random_rand() << 16 | random_rand());
|
||||
}
|
||||
|
|
|
@ -452,7 +452,7 @@ rime_sniffer_remove(struct rime_sniffer *s)
|
|||
}
|
||||
|
||||
static void
|
||||
set_packet_attrs()
|
||||
set_packet_attrs(void)
|
||||
{
|
||||
int c = 0;
|
||||
/* set protocol in NETWORK_ID */
|
||||
|
|
|
@ -88,7 +88,7 @@ rpl_instance_t *default_instance;
|
|||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
rpl_print_neighbor_list()
|
||||
rpl_print_neighbor_list(void)
|
||||
{
|
||||
if(default_instance != NULL && default_instance->current_dag != NULL &&
|
||||
default_instance->of != NULL && default_instance->of->calculate_rank != NULL) {
|
||||
|
|
|
@ -257,7 +257,7 @@ rpl_rank_t rpl_get_parent_rank(uip_lladdr_t *addr);
|
|||
uint16_t rpl_get_parent_link_metric(const uip_lladdr_t *addr);
|
||||
void rpl_dag_init(void);
|
||||
uip_ds6_nbr_t *rpl_get_nbr(rpl_parent_t *parent);
|
||||
void rpl_print_neighbor_list();
|
||||
void rpl_print_neighbor_list(void);
|
||||
|
||||
/* Per-parent RPL information */
|
||||
NBR_TABLE_DECLARE(rpl_parents);
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
#endif
|
||||
|
||||
static void res_get_handler(void *request, void *response, uint8_t *buffer, uint16_t preferred_size, int32_t *offset);
|
||||
static void res_event_handler();
|
||||
static void res_event_handler(void);
|
||||
|
||||
/*
|
||||
* Example for an event resource.
|
||||
|
@ -86,7 +86,7 @@ res_get_handler(void *request, void *response, uint8_t *buffer, uint16_t preferr
|
|||
* It is called through <res_name>.trigger(), usually from the server process.
|
||||
*/
|
||||
static void
|
||||
res_event_handler()
|
||||
res_event_handler(void)
|
||||
{
|
||||
/* Do the update triggered by the event here, e.g., sampling a sensor. */
|
||||
++event_counter;
|
||||
|
|
Loading…
Reference in a new issue