You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: flux_msg_get_payload() accepts a a void **
argument that is set to point to the message payload,
but the payload belongs to the const flux_msg_t passed
in as another argument.
Make the payload pointer 'const'.
The following functions, based on the above, are
similarly updated:
flux_request_decode_raw()
flux_response_decode_raw()
flux_rpc_get_raw()
flux_mrpc_get_raw()
flux_content_load_get()
Finally, all users of the above functions are updated.
And a libutil function writeall() parameter was changed
to const as well, since flux-content was using it on
payload returned from flux_content_load_get(), and
anyway it was appropriate there.
Fixesflux-framework#1211
Problem: flux_msg_get_payload() accepts a void **
argument that is set to point to the message payload,
but the payload belongs to the const flux_msg_t *
passed in as another argument.
Make the payload pointer 'const'.
The following functions, based on the above, are
similarly updated:
flux_request_decode_raw()
flux_response_decode_raw()
flux_rpc_get_raw()
flux_mrpc_get_raw()
flux_content_load_get()
Finally, all users of the above functions are updated.
And a libutil function writeall() parameter was changed
to const as well, since flux-content was using it on
payload returned from flux_content_load_get(), and
anyway it was appropriate there.
Fixesflux-framework#1211
Since payload is the property of
const flux_msg_t *
,buf
should also be const:Functions based on this one also need const payload arguments:
The text was updated successfully, but these errors were encountered: