fixing compilation warning
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
diff --git a/src/bdf/bdfdrivr.c b/src/bdf/bdfdrivr.c
index 3e57c34..a231fcd 100644
--- a/src/bdf/bdfdrivr.c
+++ b/src/bdf/bdfdrivr.c
@@ -184,7 +184,7 @@ THE SOFTWARE.
char *istr = NULL, *bstr = NULL;
char *sstr = NULL, *astr = NULL;
- int parts = 0, len = 0;
+ int parts = 0, len = 0;
face->style_flags = 0;
@@ -238,7 +238,7 @@ THE SOFTWARE.
face->style_name = (char *)"Regular";
else
{
- char *style, *s;
+ char *style, *s;
unsigned int i;
@@ -386,7 +386,7 @@ THE SOFTWARE.
else
root->family_name = 0;
- if ( ( error = bdf_interpret_style( face ) ) )
+ if ( ( error = bdf_interpret_style( face ) ) != 0 )
goto Exit;
root->num_glyphs = font->glyphs_size; /* unencoded included */
@@ -739,7 +739,7 @@ THE SOFTWARE.
* BDF SERVICE
*
*/
-
+
static FT_Error
bdf_get_bdf_property( BDF_Face face,
const char* prop_name,
@@ -787,9 +787,9 @@ THE SOFTWARE.
{
*acharset_encoding = face->charset_encoding;
*acharset_registry = face->charset_registry;
-
+
return 0;
- }
+ }
static const FT_Service_BDFRec bdf_service_bdf =
@@ -804,7 +804,7 @@ THE SOFTWARE.
* SERVICES LIST
*
*/
-
+
static const FT_ServiceDescRec bdf_services[] =
{
{ FT_SERVICE_ID_BDF, &bdf_service_bdf },
diff --git a/src/pcf/pcfread.c b/src/pcf/pcfread.c
index fcf3628..f29512f 100644
--- a/src/pcf/pcfread.c
+++ b/src/pcf/pcfread.c
@@ -874,7 +874,7 @@ THE SOFTWARE.
char *istr = NULL, *bstr = NULL;
char *sstr = NULL, *astr = NULL;
- int parts = 0, len = 0;
+ int parts = 0, len = 0;
face->style_flags = 0;
@@ -926,7 +926,7 @@ THE SOFTWARE.
face->style_name = (char *)"Regular";
else
{
- char *style, *s;
+ char *style, *s;
unsigned int i;
@@ -1040,7 +1040,7 @@ THE SOFTWARE.
if ( face->accel.constantWidth )
root->face_flags |= FT_FACE_FLAG_FIXED_WIDTH;
- if ( ( error = pcf_interpret_style( face ) ) )
+ if ( ( error = pcf_interpret_style( face ) ) != 0 )
goto Exit;
prop = pcf_find_property( face, "FAMILY_NAME" );