e system api - fix warning about buffer ptr get

binbuf buffers are universally aligned anyway...
This commit is contained in:
Carsten Haitzler 2020-01-15 16:50:04 +01:00
parent fcb7f3c1ec
commit 10c2d74a9b
1 changed files with 3 additions and 2 deletions

View File

@ -61,13 +61,14 @@ static Eina_Bool
_system_message_read(void)
{
Message_Head *head;
const char *data = (const char *)eina_binbuf_string_get(_msg_buf);
const void *bdata = eina_binbuf_string_get(_msg_buf);
const char *data = bdata;
size_t len = eina_binbuf_length_get(_msg_buf);
Eina_Binbuf *buf2;
if (!data) return EINA_FALSE;
if (len < sizeof(Message_Head)) return EINA_FALSE;
head = (Message_Head *)data;
head = (Message_Head *)bdata;
if (len < (sizeof(Message_Head) + head->size)) return EINA_FALSE;
if (_handlers)
{