summaryrefslogtreecommitdiff
path: root/src/pcf/pcfread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcf/pcfread.c')
-rw-r--r--src/pcf/pcfread.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pcf/pcfread.c b/src/pcf/pcfread.c
index eac265e86..984df7150 100644
--- a/src/pcf/pcfread.c
+++ b/src/pcf/pcfread.c
@@ -50,7 +50,7 @@ THE SOFTWARE.
#if defined( FT_DEBUG_LEVEL_TRACE )
- static char* tableNames[] =
+ static const char* tableNames[] =
{
"prop", "accl", "mtrcs", "bmps", "imtrcs",
"enc", "swidth", "names", "accel"
@@ -95,7 +95,7 @@ THE SOFTWARE.
PCF_Table tables;
FT_Memory memory = FT_FACE(face)->memory;
- unsigned int i;
+ unsigned int n;
if ( FILE_Seek ( 0 ) ||
@@ -109,7 +109,7 @@ THE SOFTWARE.
return PCF_Err_Out_Of_Memory;
tables = face->toc.tables;
- for ( i = 0; i < toc->count; i++ )
+ for ( n = 0; n < toc->count; n++ )
{
if ( READ_Fields( pcf_table_header, tables ) )
goto Exit;
@@ -119,8 +119,8 @@ THE SOFTWARE.
#if defined( FT_DEBUG_LEVEL_TRACE )
{
- unsigned int i,j;
- char* name = "?";
+ unsigned int i, j;
+ const char *name = "?";
FT_TRACE4(( "Tables count: %ld\n", face->toc.count ));
@@ -129,7 +129,7 @@ THE SOFTWARE.
{
for( j = 0; j < sizeof ( tableNames ) / sizeof ( tableNames[0] ); j++ )
if ( tables[i].type == (unsigned int)( 1 << j ) )
- name=tableNames[j];
+ name = tableNames[j];
FT_TRACE4(( "Table %d: type=%-6s format=0x%04lX "
"size=0x%06lX (%8ld) offset=0x%04lX\n",
i, name,