summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2010-04-22 06:47:28 +0000
committerChris Johns <chrisj@rtems.org>2010-04-22 06:47:28 +0000
commit452e5b0828d674e184d55eb14f453757f1be9ea1 (patch)
tree9a6869f82423007c32768cfa3a17ebb04a00220e /doc
parent2010-04-20 Allan Hessenflow <allanh@kallisti.com> (diff)
downloadrtems-452e5b0828d674e184d55eb14f453757f1be9ea1.tar.bz2
2010-04-22 Alin Rus <alin.codejunkie@gmail.com>
* user/chain.t: Fixed the example from PR 1504.
Diffstat (limited to 'doc')
-rw-r--r--doc/ChangeLog4
-rwxr-xr-xdoc/user/chains.t5
2 files changed, 7 insertions, 2 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 74d6642761..e4ca8a34ac 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-22 Alin Rus <alin.codejunkie@gmail.com>
+
+ * user/chain.t: Fixed the example from PR 1504.
+
2010-03-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* user/conf.t: CONFIGURE_DISABLE_CLASSIC_NOTEPADS is typo of
diff --git a/doc/user/chains.t b/doc/user/chains.t
index 825bed8a04..7e005b1832 100755
--- a/doc/user/chains.t
+++ b/doc/user/chains.t
@@ -180,14 +180,15 @@ void foobar (const char* match,
while (!@value{DIRPREFIX}chain_is_tail (chain, node))
@{
bar = (foo*) node;
+ rtems_chain_node* next_node = node->next;
if (strcmp (match, bar->data) == 0)
@{
- @value{DIRPREFIX}chain_node* next_node = node->next;
@value{DIRPREFIX}chain_extract (node);
@value{DIRPREFIX}chain_append (out, node);
- node = next_node;
@}
+
+ node = next_node;
@}
@}
@end example