BIND 10 master, updated. 98eab34d80219120219d064f6b3b9f0afce3e59a Merge branch 'work/configiterator'
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Apr 26 18:13:44 UTC 2011
The branch, master has been updated
via 98eab34d80219120219d064f6b3b9f0afce3e59a (commit)
via 3427f489904a83ed1adb8e740aaaf1f6ba80267e (commit)
via 74472396fc8f91daedcd6a286b34b5cae8a5ab57 (commit)
from d4ab440d337cb9ef3f1301c3b655ed0a913cf257 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 98eab34d80219120219d064f6b3b9f0afce3e59a
Merge: d4ab440d337cb9ef3f1301c3b655ed0a913cf257 3427f489904a83ed1adb8e740aaaf1f6ba80267e
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Tue Apr 26 20:07:18 2011 +0200
Merge branch 'work/configiterator'
commit 3427f489904a83ed1adb8e740aaaf1f6ba80267e
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Tue Apr 26 10:48:19 2011 +0200
[trac846] Simplify the function
commit 74472396fc8f91daedcd6a286b34b5cae8a5ab57
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Mon Apr 25 17:38:39 2011 +0200
[trac846] Fix confused test function
It seemed this function is supposed to remove given element from list,
but the counting was somehow confused.
-----------------------------------------------------------------------
Summary of changes:
src/lib/config/tests/fake_session.cc | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/config/tests/fake_session.cc b/src/lib/config/tests/fake_session.cc
index 29744c7..5f79d48 100644
--- a/src/lib/config/tests/fake_session.cc
+++ b/src/lib/config/tests/fake_session.cc
@@ -52,16 +52,14 @@ listContains(ConstElementPtr list, ConstElementPtr el) {
void
listRemove(ElementPtr list, ConstElementPtr el) {
- int i = -1;
+ int i = 0;
BOOST_FOREACH(ConstElementPtr s_el, list->listValue()) {
if (*el == *s_el) {
- i = 0;
+ list->remove(i);
+ return;
}
i++;
}
- if (i >= 0) {
- list->remove(i);
- }
}
// endwant
More information about the bind10-changes
mailing list