From: Renz Christian Bagaporo Date: Tue, 29 Jan 2019 02:53:26 +0000 (+0800) Subject: esp_event: fix post data type inconsistency X-Git-Tag: v3.2-beta3~22^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f49f5ff35af6da251483d07600fd0e4f22e9999a;p=esp-idf esp_event: fix post data type inconsistency --- diff --git a/components/esp_event/esp_event.c b/components/esp_event/esp_event.c index 149f364303..eba9bcc676 100644 --- a/components/esp_event/esp_event.c +++ b/components/esp_event/esp_event.c @@ -286,7 +286,7 @@ static esp_event_base_instance_t* loop_find_event_base_instance(esp_event_loop_i // Functions that operate on post instance static esp_err_t post_instance_create(esp_event_base_t event_base, int32_t event_id, void* event_data, int32_t event_data_size, esp_event_post_instance_t* post) { - void** event_data_copy = NULL; + void* event_data_copy = NULL; // Make persistent copy of event data on heap. if (event_data != NULL && event_data_size != 0) { diff --git a/components/esp_event/private_include/esp_event_internal.h b/components/esp_event/private_include/esp_event_internal.h index 28cd882033..8b29c8628b 100644 --- a/components/esp_event/private_include/esp_event_internal.h +++ b/components/esp_event/private_include/esp_event_internal.h @@ -90,7 +90,7 @@ typedef struct esp_event_loop_instance { typedef struct esp_event_post_instance { esp_event_base_t base; /**< the event base */ int32_t id; /**< the event id */ - void** data; /**< data associated with the event */ + void* data; /**< data associated with the event */ } esp_event_post_instance_t; #ifdef __cplusplus