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
/
vppinfra
/
unix-misc.c
diff --git
a/src/vppinfra/unix-misc.c
b/src/vppinfra/unix-misc.c
index
5559a23
..
e73d01a
100644
(file)
--- a/
src/vppinfra/unix-misc.c
+++ b/
src/vppinfra/unix-misc.c
@@
-158,7
+158,7
@@
unix_proc_file_contents (char *file, u8 ** result)
if (bytes == 0)
{
-
_vec_len (rv) = pos
;
+
vec_set_len (rv, pos)
;
break;
}
pos += bytes;