merged multi-auth branch back into trunk

This commit is contained in:
Martin Willi
2009-04-14 10:34:24 +00:00
parent 6e5c8d9413
commit a44bb9345f
230 changed files with 6163 additions and 4193 deletions
+10 -4
View File
@@ -1208,14 +1208,20 @@ enum_search(enum_names *ed, const char *str)
unsigned en;
for (p = ed; p != NULL; p = p->en_next_range)
{
for (en = p->en_first; en <= p->en_last ;en++)
{
ptr = p->en_names[en - p->en_first];
if (ptr == 0) continue;
/* if (strncmp(ptr, str, strlen(ptr))==0) */
if (strcmp(ptr, str) == 0)
return en;
if (ptr == 0)
{
continue;
}
if (streq(ptr, str))
{
return en;
}
}
}
return -1;
}