mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
[testapp] Update testapp for new data,len arg order
The testapp call to endpoint_recieve was never updated for the great data,len convergence due to the .def files. Fixed and working again.
This commit is contained in:
@@ -29,7 +29,7 @@ endpoint_send(j6_handle_t handle, uint64_t tag, const void * data, size_t data_l
|
||||
j6_status_t
|
||||
endpoint_receive(j6_handle_t handle, uint64_t * tag, void * data, size_t * data_len)
|
||||
{
|
||||
if (!tag || !data_len || !data)
|
||||
if (!tag || !data_len || (*data_len && !data))
|
||||
return j6_err_invalid_arg;
|
||||
|
||||
endpoint *e = get_handle<endpoint>(handle);
|
||||
|
||||
@@ -134,7 +134,7 @@ main(int argc, const char **argv)
|
||||
|
||||
size_t len = 0;
|
||||
while (true) {
|
||||
result = j6_endpoint_receive(endp, &tag, &len, nullptr);
|
||||
result = j6_endpoint_receive(endp, &tag, nullptr, &len);
|
||||
if (result != j6_status_ok)
|
||||
return result;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user