Skip to content

Commit

Permalink
Fix compile issue on void* (#478)
Browse files Browse the repository at this point in the history
* Fix compile issue on void*

compile issue on Epson AT-991, Clear Linux OS Version 1, Intel icc 2021.1 Beta 20200827 and icpc 2021.1 Beta 20200827 for intel 64

Azure/azure-iot-sdk-c#1755

* Update socketio_berkeley.c
  • Loading branch information
ericwolz authored Nov 23, 2020
1 parent 3134faa commit 93163fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/socketio_berkeley.c
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ int socketio_send(CONCRETE_IO_HANDLE socket_io, const void* buffer, size_t size,
/* queue data */
size_t bytes_sent = (send_result < 0 ? 0 : send_result);

if (add_pending_io(socket_io_instance, buffer + bytes_sent, size - bytes_sent, on_send_complete, callback_context) != 0)
if (add_pending_io(socket_io_instance, (const unsigned char*)buffer + bytes_sent, size - bytes_sent, on_send_complete, callback_context) != 0)
{
LogError("Failure: add_pending_io failed.");
result = MU_FAILURE;
Expand Down

0 comments on commit 93163fb

Please sign in to comment.