[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:
Justin C. Miller
2021-12-30 18:21:09 -08:00
parent 037e42da1d
commit 13b39ae730
2 changed files with 2 additions and 2 deletions

View File

@@ -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);