sf_iova_memset_ex: add const modifier
parent
fa9e00f3b8
commit
52e34ca393
|
|
@ -140,11 +140,11 @@ int sf_iova_next_slice(SFDynamicIOVArray *iova,
|
||||||
return iova_slice(iova, slice_len);
|
return iova_slice(iova, slice_len);
|
||||||
}
|
}
|
||||||
|
|
||||||
int sf_iova_memset_ex(struct iovec *iov, const int iovcnt,
|
int sf_iova_memset_ex(const struct iovec *iov, const int iovcnt,
|
||||||
int c, const int offset, const int length)
|
int c, const int offset, const int length)
|
||||||
{
|
{
|
||||||
struct iovec *iob;
|
const struct iovec *iob;
|
||||||
struct iovec *end;
|
const struct iovec *end;
|
||||||
int sum_bytes;
|
int sum_bytes;
|
||||||
int remain_len;
|
int remain_len;
|
||||||
int left_bytes;
|
int left_bytes;
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ int sf_iova_first_slice(SFDynamicIOVArray *iova, const int slice_len);
|
||||||
int sf_iova_next_slice(SFDynamicIOVArray *iova,
|
int sf_iova_next_slice(SFDynamicIOVArray *iova,
|
||||||
const int consume_len, const int slice_len);
|
const int consume_len, const int slice_len);
|
||||||
|
|
||||||
int sf_iova_memset_ex(struct iovec *iov, const int iovcnt,
|
int sf_iova_memset_ex(const struct iovec *iov, const int iovcnt,
|
||||||
int c, const int offset, const int length);
|
int c, const int offset, const int length);
|
||||||
|
|
||||||
#define sf_iova_memset(iova, c, offset, length) \
|
#define sf_iova_memset(iova, c, offset, length) \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue