* src/cff/cffload.c (cff_index_init): Remove unused variable.

(cff_index_read_offset): s/perror/errorp/ to avoid global shadowing.
This commit is contained in:
Werner Lemberg 2007-01-06 07:51:48 +00:00
parent f629439905
commit be5f797f5b
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-01-06 Werner Lemberg <wl@gnu.org>
* src/cff/cffload.c (cff_index_init): Remove unused variable.
(cff_index_read_offset): s/perror/errorp/ to avoid global shadowing.
2007-01-04 David Turner <david@freetype.org> 2007-01-04 David Turner <david@freetype.org>
* src/pfr/pfrobjs.c (pfr_face_init): Detect non-scalable fonts * src/pfr/pfrobjs.c (pfr_face_init): Detect non-scalable fonts

View File

@ -197,7 +197,7 @@
/* read an offset from the index's stream current position */ /* read an offset from the index's stream current position */
static FT_ULong static FT_ULong
cff_index_read_offset( CFF_Index idx, cff_index_read_offset( CFF_Index idx,
FT_Error *perror ) FT_Error *errorp )
{ {
FT_Error error; FT_Error error;
FT_Stream stream = idx->stream; FT_Stream stream = idx->stream;
@ -214,7 +214,7 @@
result = ( result << 8 ) | tmp[nn]; result = ( result << 8 ) | tmp[nn];
} }
*perror = error; *errorp = error;
return result; return result;
} }
@ -237,7 +237,7 @@
count > 0 ) count > 0 )
{ {
FT_Byte offsize; FT_Byte offsize;
FT_ULong size, last_offset; FT_ULong size;
/* there is at least one element; read the offset size, */ /* there is at least one element; read the offset size, */