char* tk;
char* buf = strdup (v);
for (tk = strtok (buf, DELIM); tk; tk = strtok (NULL, DELIM)) {
- c = toupper(*tk);
+ c = (char) toupper(*tk);
if (c == 'R') {
if (!strcasecmp(tk + 1, "OUNDED")) p->style |= ROUNDED;
else if (!strcasecmp(tk + 1, "ADIAL")) p->style |= RADIAL;
static int fixedsizefn(htmldata_t * p, char *v)
{
int rv = 0;
- char c = toupper(*(unsigned char *) v);
+ char c = (char) toupper(*(unsigned char *) v);
if ((c == 'T') && !strcasecmp(v + 1, "RUE"))
p->flags |= FIXED_FLAG;
else if ((c != 'F') || strcasecmp(v + 1, "ALSE")) {
static int valignfn(htmldata_t * p, char *v)
{
int rv = 0;
- char c = toupper(*v);
+ char c = (char) toupper(*v);
if ((c == 'B') && !strcasecmp(v + 1, "OTTOM"))
p->flags |= VALIGN_BOTTOM;
else if ((c == 'T') && !strcasecmp(v + 1, "OP"))
static int halignfn(htmldata_t * p, char *v)
{
int rv = 0;
- char c = toupper(*v);
+ char c = (char) toupper(*v);
if ((c == 'L') && !strcasecmp(v + 1, "EFT"))
p->flags |= HALIGN_LEFT;
else if ((c == 'R') && !strcasecmp(v + 1, "IGHT"))
static int cell_halignfn(htmldata_t * p, char *v)
{
int rv = 0;
- char c = toupper(*v);
+ char c = (char) toupper(*v);
if ((c == 'L') && !strcasecmp(v + 1, "EFT"))
p->flags |= HALIGN_LEFT;
else if ((c == 'R') && !strcasecmp(v + 1, "IGHT"))
static int balignfn(htmldata_t * p, char *v)
{
int rv = 0;
- char c = toupper(*v);
+ char c = (char) toupper(*v);
if ((c == 'L') && !strcasecmp(v + 1, "EFT"))
p->flags |= BALIGN_LEFT;
else if ((c == 'R') && !strcasecmp(v + 1, "IGHT"))
static int alignfn(int *p, char *v)
{
int rv = 0;
- char c = toupper(*v);
+ char c = (char) toupper(*v);
if ((c == 'R') && !strcasecmp(v + 1, "IGHT"))
*p = 'r';
else if ((c == 'L') || !strcasecmp(v + 1, "EFT"))