aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhemant_mnkcg <hemant@mnkcg.com>2021-01-19 14:20:04 -0500
committerDave Wallace <dwallacelf@gmail.com>2021-01-27 20:43:29 +0000
commit27df7979782aafca80ea4c7309284bd48fe021c0 (patch)
tree5796702afd5a3551d348cbb81026809b56d42753
parentd6361c7b899aa8ca8643c0d0c93fce25f3e78be2 (diff)
Change unformat_init_string API in doc to match code
Signed-off-by: hemant_mnkcg <hemant@mnkcg.com> Change-Id: I4ec487054f928d52fe06d530df095b30edf66ae5
-rw-r--r--docs/gettingstarted/developers/infrastructure.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/gettingstarted/developers/infrastructure.md b/docs/gettingstarted/developers/infrastructure.md
index cae34fc7799..a61068c75cd 100644
--- a/docs/gettingstarted/developers/infrastructure.md
+++ b/docs/gettingstarted/developers/infrastructure.md
@@ -438,8 +438,9 @@ follows:
```c
unformat_input_t input;
+ u8 *s = "<some-C-string>";
- unformat_init_string (&input, "<some-C-string>");
+ unformat_init_string (&input, (char *) s, strlen((char *) s));
/* or */
unformat_init_vector (&input, <u8-vector>);
```