shithub: freetype+ttf2subf

Download patch

ref: be5f797f5b36542bccfc5664e2a2b293e0eb3084
parent: f6294399056077c92367301623c093db285dadbf
author: Werner Lemberg <[email protected]>
date: Sat Jan 6 02:51:48 EST 2007

* src/cff/cffload.c (cff_index_init): Remove unused variable.
(cff_index_read_offset): s/perror/errorp/ to avoid global shadowing.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-06  Werner Lemberg  <[email protected]>
+
+	* 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  <[email protected]>
 
 	* src/pfr/pfrobjs.c (pfr_face_init): Detect non-scalable fonts
--- a/src/cff/cffload.c
+++ b/src/cff/cffload.c
@@ -197,7 +197,7 @@
   /* read an offset from the index's stream current position */
   static FT_ULong
   cff_index_read_offset( CFF_Index  idx,
-                         FT_Error  *perror )
+                         FT_Error  *errorp )
   {
     FT_Error   error;
     FT_Stream  stream = idx->stream;
@@ -214,7 +214,7 @@
         result = ( result << 8 ) | tmp[nn];
     }
 
-    *perror = error;
+    *errorp = error;
     return result;
   }
 
@@ -237,7 +237,7 @@
          count > 0                )
     {
       FT_Byte   offsize;
-      FT_ULong  size, last_offset;
+      FT_ULong  size;
 
 
       /* there is at least one element; read the offset size,           */