{PROTO_Z3950, CLASS_TAGSET, VAL_GILS, {14,3,-1}, "GILS" },
/* SR definitions. Note that some of them aren't defined by the
{PROTO_Z3950, CLASS_TAGSET, VAL_GILS, {14,3,-1}, "GILS" },
/* SR definitions. Note that some of them aren't defined by the
{PROTO_SR, CLASS_ABSYN, VAL_APDU, {2,1,-1}, "SR-APDU" },
{PROTO_SR, CLASS_APPCTX, VAL_BASIC_CTX, {1,1,-1}, "SR-BASIC" },
{PROTO_SR, CLASS_ATTSET, VAL_BIB1, {3,1,-1}, "Bib-1" },
{PROTO_SR, CLASS_ABSYN, VAL_APDU, {2,1,-1}, "SR-APDU" },
{PROTO_SR, CLASS_APPCTX, VAL_BASIC_CTX, {1,1,-1}, "SR-BASIC" },
{PROTO_SR, CLASS_ATTSET, VAL_BIB1, {3,1,-1}, "Bib-1" },
for (len = 0; *look == *prefix; look++, prefix++, len++);
if (*prefix < 0) /* did we reach the end of the prefix? */
for (len = 0; *look == *prefix; look++, prefix++, len++);
if (*prefix < 0) /* did we reach the end of the prefix? */
- if (ent->proto == p->proto &&
- ent->class == p->class &&
- ent->value == p->value)
- {
- if (ent->proto == PROTO_Z3950)
- oid_oidcpy(ret, z3950_prefix);
- else if (ent->proto == PROTO_SR)
- oid_oidcpy(ret, sr_prefix);
- else
- ret[0] = -1;
- oid_oidcat(ret, p->oidsuffix);
- return ret;
- }
+ if (ent->proto == p->proto &&
+ ent->class == p->class &&
+ ent->value == p->value)
+ {
+ if (ent->proto == PROTO_Z3950)
+ oid_oidcpy(ret, z3950_prefix);
+ else if (ent->proto == PROTO_SR)
+ oid_oidcpy(ret, sr_prefix);
+ else
+ ret[0] = -1;
+ oid_oidcat(ret, p->oidsuffix);
+ return ret;
+ }