mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 16:00:12 +00:00
rx: Constify rx_opaque_populate
rx_opaque_populate doesn't modify the data passed into it, so make that argument const Change-Id: Icc7c121bda43a8abc19f72affc70967baba91e6d Reviewed-on: http://gerrit.openafs.org/7557 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Alistair Ferguson <alistair.ferguson@mac.com> Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
fac69a5c88
commit
c855dd726a
@ -104,7 +104,7 @@ rx_opaque_alloc(struct rx_opaque *buf, size_t length)
|
||||
*/
|
||||
|
||||
int
|
||||
rx_opaque_populate(struct rx_opaque *to, void *data, size_t datalen)
|
||||
rx_opaque_populate(struct rx_opaque *to, const void *data, size_t datalen)
|
||||
{
|
||||
int code;
|
||||
to->len = 0;
|
||||
|
@ -34,7 +34,7 @@ struct rx_opaque {
|
||||
|
||||
struct rx_opaque *rx_opaque_new(void *data, size_t datalen);
|
||||
int rx_opaque_alloc(struct rx_opaque *buf, size_t length);
|
||||
int rx_opaque_populate(struct rx_opaque *to, void *data, size_t datalen);
|
||||
int rx_opaque_populate(struct rx_opaque *to, const void *data, size_t datalen);
|
||||
int rx_opaque_copy(struct rx_opaque *to, const struct rx_opaque *from);
|
||||
void rx_opaque_freeContents(struct rx_opaque *buf);
|
||||
void rx_opaque_zeroFreeContents(struct rx_opaque *buf);
|
||||
|
Loading…
Reference in New Issue
Block a user