/* This file is part of the Zebra server.
- Copyright (C) 1994-2009 Index Data
+ Copyright (C) Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <assert.h>
#include <attrfind.h>
element = src->attributeList[src->major];
if (src->type == *element->attributeType)
{
- switch (element->which)
+ switch (element->which)
{
case Z_AttributeValue_numeric:
++(src->major);
break;
if (element->attributeSet && attribute_set_oid)
*attribute_set_oid = element->attributeSet;
- if (element->value.complex->list[src->minor]->which ==
+ if (element->value.complex->list[src->minor]->which ==
Z_StringOrNumeric_numeric)
{
++(src->minor);
return
*element->value.complex->list[src->minor-1]->u.numeric;
}
- else if (element->value.complex->list[src->minor]->which ==
+ else if (element->value.complex->list[src->minor]->which ==
Z_StringOrNumeric_string)
{
if (!string_value)
break;
++(src->minor);
- *string_value =
+ *string_value =
element->value.complex->list[src->minor-1]->u.string;
return -2;
}