diff options
author | Peter Mitsis <peter.mitsis@windriver.com> | 2016-10-17 13:06:48 -0400 |
---|---|---|
committer | Anas Nashif <nashif@linux.intel.com> | 2016-10-24 22:58:26 +0000 |
commit | 12f35f312c81a4a6a2170b30c3f8a18c40de029b (patch) | |
tree | 89a2359f8c459918cd3dc130637ab1b67f82fafb /doc | |
parent | ddbe77a1dd9d257b569cb224bd66560f9ff84869 (diff) |
unified: Update k_stack_pop() usage in documentation
Change-Id: I909fc6b56a5e15e0bc9490e79ea7fb822bcbb325
Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/kernel_v2/data_passing/stacks.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/kernel_v2/data_passing/stacks.rst b/doc/kernel_v2/data_passing/stacks.rst index 814ffcb6c..8dcaeab47 100644 --- a/doc/kernel_v2/data_passing/stacks.rst +++ b/doc/kernel_v2/data_passing/stacks.rst @@ -115,7 +115,7 @@ its address back on the stack to allow the data structure to be reused. struct my_buffer_type *new_buffer; - new_buffer = (struct my_buffer_type *)k_stack_pop(&buffer_stack, K_FOREVER); + k_stack_pop(&buffer_stack, (uint32_t *)&new_buffer, K_FOREVER); new_buffer->field1 = ... Suggested Uses |