Commit 4903de33 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[master] Merge branch 'master' of ssh://bind10.isc.org/var/bind10/git/bind10

parents 2bb4420b 98eab34d
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment