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:
Simon Wilkinson 2012-06-07 20:46:27 +01:00 committed by Derrick Brashear
parent fac69a5c88
commit c855dd726a
2 changed files with 2 additions and 2 deletions

View File

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

View File

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