mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
examples/er-rest-example/resources/res-event.c: fix warning: function declaration isn't a prototype
This commit is contained in:
parent
4ff571beb2
commit
1219790312
@ -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 New Issue
Block a user