Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vppinfra: make _vec_len() read-only
[vpp.git]
/
src
/
vat
/
api_format.c
diff --git
a/src/vat/api_format.c
b/src/vat/api_format.c
index
4827d55
..
14546b5
100644
(file)
--- a/
src/vat/api_format.c
+++ b/
src/vat/api_format.c
@@
-1427,7
+1427,7
@@
unformat_classify_mask (unformat_input_t * input, va_list * args)
if (match == 0)
clib_warning ("BUG: match 0");
if (match == 0)
clib_warning ("BUG: match 0");
-
_vec_len (mask) = match * sizeof (u32x4
);
+
vec_set_len (mask, match * sizeof (u32x4)
);
*matchp = match;
*maskp = mask;
*matchp = match;
*maskp = mask;
@@
-1994,7
+1994,7
@@
api_unformat_classify_match (unformat_input_t * input, va_list * args)
sizeof (u32x4));
/* Set size, include skipped vectors */
sizeof (u32x4));
/* Set size, include skipped vectors */
-
_vec_len (match) = (match_n_vectors + skip_n_vectors) * sizeof (u32x4
);
+
vec_set_len (match, (match_n_vectors + skip_n_vectors) * sizeof (u32x4)
);
*matchp = match;
*matchp = match;