/*
- $ $Id: charneg.c,v 1.4 2002-07-25 12:50:17 adam Exp $
+ $ $Id: charneg.c,v 1.6 2002-10-04 11:24:39 adam Exp $
* Helper functions for Character Set and Language Negotiation - 3
*/
p->indirect_reference = 0;
oid.proto = PROTO_Z3950;
- oid.oclass = oid_class;
- oid.value = oid_value;
+ oid.oclass = (enum oid_class) oid_class;
+ oid.value = (enum oid_value) oid_value;
p->direct_reference = odr_oiddup(o, oid_getoidbyent(&oid));
p->which = Z_External_octet;
int form = -1;
- if (!strcmp (charset, "UCS-2"))
+ if (!yaz_matchstr(charset, "UCS-2"))
form = 2;
- if (!strcmp (charset, "UCS-4"))
+ if (!yaz_matchstr(charset, "UCS-4"))
form = 4;
- if (!strcmp (charset, "UTF-16"))
+ if (!yaz_matchstr(charset, "UTF-16"))
form = 5;
- if (!strcmp (charset, "UTF-8"))
+ if (!yaz_matchstr(charset, "UTF-8"))
form = 8;
return form;