if (buffer[i] == 0xff && buffer[i + 1] == 0xff)
break;
- ret = g_convert(buffer, length, "UTF-8//TRANSLIT", "UCS-2BE",
+ ret = g_convert((const char *)buffer, length,
+ "UTF-8//TRANSLIT", "UCS-2BE",
NULL, NULL, NULL);
break;
}
const struct spdi_operator *opb = b;
gint r;
- if (r = strcmp(opa->mcc, opb->mcc))
+ if ((r = strcmp(opa->mcc, opb->mcc)))
return r;
return strcmp(opa->mnc, opb->mnc);
void sim_eons_add_pnn_record(struct sim_eons *eons, int record,
const guint8 *tlv, int length)
{
- const char *name;
+ const unsigned char *name;
int namelength;
- gboolean add_ci;
struct sim_eons_operator_info *oper = &eons->pnn_list[record-1];
name = ber_tlv_find_by_tag(tlv, 0x43, length, &namelength);