dtudcexch/dtudcfonted: Resolve 78 compiler warnings.

This commit is contained in:
Peter Howkins
2012-09-18 12:00:05 +01:00
parent e2432556b8
commit 5e14a88e2c
12 changed files with 69 additions and 66 deletions

View File

@@ -687,7 +687,7 @@ int num;
FontScope scope;
ret = (ExtdSegment)Xmalloc(sizeof(ExtdSegmentRec));
if(ret == NULL){
return (NULL);
return (0);
}
if(strchr(value[0],':')){
ret->name = (char *)Xmalloc(strlen(value[0])+1);
@@ -696,7 +696,7 @@ int num;
}
strcpy(ret->name,value[0]);
ptr = strchr(ret->name,':');
*ptr = NULL;
*ptr = 0;
ptr++;
if( !_fallcNCompareISOLatin1(ptr, "none", 4) ){
ret->side = XlcNONE ;
@@ -939,7 +939,7 @@ load_generic(lcd)
char tmp[128];
tmpb = (codeset->byteM)[M-1].byteinfo ;
/* default 0x00 - 0xff */
sscanf(value[ii],"\\x%lx,\\x%lx",&start,&end);
sscanf(value[ii], "\\x%lx,\\x%lx", (long unsigned *) &start, (long unsigned *) &end);
tmpb[ii].start = (unsigned char)start;
tmpb[ii].end = (unsigned char)end;
}