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
/
vlib
/
unix
/
util.c
diff --git
a/src/vlib/unix/util.c
b/src/vlib/unix/util.c
index
03aef36
..
04cd6f5
100644
(file)
--- a/
src/vlib/unix/util.c
+++ b/
src/vlib/unix/util.c
@@
-86,8
+86,8
@@
foreach_directory_file (char *dir_name,
s = format (s, "%s/%s", dir_name, e->d_name);
t = format (t, "%s", e->d_name);
error = f (arg, s, t);
s = format (s, "%s/%s", dir_name, e->d_name);
t = format (t, "%s", e->d_name);
error = f (arg, s, t);
-
_vec_len (s) = 0
;
-
_vec_len (t) = 0
;
+
vec_set_len (s, 0)
;
+
vec_set_len (t, 0)
;
if (error)
break;
if (error)
break;
@@
-116,7
+116,7
@@
vlib_unix_recursive_mkdir (char *path)
error = clib_error_return_unix (0, "mkdir '%s'", c);
goto done;
}
error = clib_error_return_unix (0, "mkdir '%s'", c);
goto done;
}
-
_vec_len (c)--
;
+
vec_dec_len (c, 1)
;
}
vec_add1 (c, path[i]);
i++;
}
vec_add1 (c, path[i]);
i++;