Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
IP Multicast FIB (mfib)
[vpp.git]
/
src
/
vppinfra
/
unformat.c
diff --git
a/src/vppinfra/unformat.c
b/src/vppinfra/unformat.c
index
ac8b7dd
..
7c636cc
100644
(file)
--- a/
src/vppinfra/unformat.c
+++ b/
src/vppinfra/unformat.c
@@
-681,8
+681,8
@@
error:
return 0;
}
return 0;
}
-static char *
-match_input_with_format (unformat_input_t * input, char *f)
+static c
onst c
har *
+match_input_with_format (unformat_input_t * input, c
onst c
har *f)
{
uword cf, ci;
{
uword cf, ci;
@@
-703,8
+703,8
@@
match_input_with_format (unformat_input_t * input, char *f)
return f;
}
return f;
}
-static char *
-do_percent (unformat_input_t * input, va_list * va, char *f)
+static c
onst c
har *
+do_percent (unformat_input_t * input, va_list * va, c
onst c
har *f)
{
uword cf, n, data_bytes = ~0;
{
uword cf, n, data_bytes = ~0;
@@
-824,9
+824,9
@@
unformat_skip_white_space (unformat_input_t * input)
}
uword
}
uword
-va_unformat (unformat_input_t * input, char *fmt, va_list * va)
+va_unformat (unformat_input_t * input, c
onst c
har *fmt, va_list * va)
{
{
- char *f;
+ c
onst c
har *f;
uword input_matches_format;
uword default_skip_input_white_space;
uword n_input_white_space_skipped;
uword input_matches_format;
uword default_skip_input_white_space;
uword n_input_white_space_skipped;
@@
-937,7
+937,7
@@
va_unformat (unformat_input_t * input, char *fmt, va_list * va)
else
{
else
{
- char *g = match_input_with_format (input, f);
+ c
onst c
har *g = match_input_with_format (input, f);
if (!g)
goto parse_fail;
last_non_white_space_match_format = g > f;
if (!g)
goto parse_fail;
last_non_white_space_match_format = g > f;
@@
-963,7
+963,7
@@
parse_fail:
}
uword
}
uword
-unformat (unformat_input_t * input, char *fmt, ...)
+unformat (unformat_input_t * input, c
onst c
har *fmt, ...)
{
va_list va;
uword result;
{
va_list va;
uword result;