summaryrefslogtreecommitdiff
path: root/pango/opentype
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-09-22 18:14:55 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-09-22 18:14:55 +0000
commit219bfc4ac4706b7d77f612fc9199b0ffa5ea36a5 (patch)
tree10fae263529393a52a57f6357ea4295cc26d5375 /pango/opentype
parent3e5e32ac30c66f97b73f00d46ac539b4c3f89409 (diff)
downloadpango-219bfc4ac4706b7d77f612fc9199b0ffa5ea36a5.tar.gz
Cleanups from 'sparse', #149922, Kjartan Maraas
Wed Sep 22 14:07:47 2004 Owen Taylor <otaylor@redhat.com> Cleanups from 'sparse', #149922, Kjartan Maraas * pango/pango-utils.c (read_config): () => (void) in definition. * pango/pangofc-fontmap.c (pango_fc_font_map_list_families): Initialize *n_families, not n_families. * pango/pangofc-fontmap.c pango/pangoft2.c opentype/ftxgdef.c opentype/ftxgpos.c opentype/ftxgsub.c: : Fix various 0/NULL confusion.
Diffstat (limited to 'pango/opentype')
-rw-r--r--pango/opentype/ftxgdef.c2
-rw-r--r--pango/opentype/ftxgpos.c6
-rw-r--r--pango/opentype/ftxgsub.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/pango/opentype/ftxgdef.c b/pango/opentype/ftxgdef.c
index 449b2e2d..60ad5816 100644
--- a/pango/opentype/ftxgdef.c
+++ b/pango/opentype/ftxgdef.c
@@ -179,7 +179,7 @@
if ( !retptr )
return TT_Err_Invalid_Argument;
- if (( error = tt_face->goto_table( tt_face, TTAG_GDEF, stream, 0 ) ))
+ if (( error = tt_face->goto_table( tt_face, TTAG_GDEF, stream, NULL ) ))
return error;
if (( error = TT_New_GDEF_Table ( face, &gdef ) ))
diff --git a/pango/opentype/ftxgpos.c b/pango/opentype/ftxgpos.c
index 962b6663..3ac13482 100644
--- a/pango/opentype/ftxgpos.c
+++ b/pango/opentype/ftxgpos.c
@@ -102,7 +102,7 @@
if ( !stream )
return TT_Err_Invalid_Face_Handle;
- if (( error = tt_face->goto_table( tt_face, TTAG_GPOS, stream, 0 ) ))
+ if (( error = tt_face->goto_table( tt_face, TTAG_GPOS, stream, NULL ) ))
return error;
base_offset = FILE_Pos();
@@ -663,7 +663,7 @@
{
an->af.af3.XDeviceTable.StartSize = 0;
an->af.af3.XDeviceTable.EndSize = 0;
- an->af.af3.XDeviceTable.DeltaValue = 0;
+ an->af.af3.XDeviceTable.DeltaValue = NULL;
}
if ( ACCESS_Frame( 2L ) )
@@ -688,7 +688,7 @@
{
an->af.af3.YDeviceTable.StartSize = 0;
an->af.af3.YDeviceTable.EndSize = 0;
- an->af.af3.YDeviceTable.DeltaValue = 0;
+ an->af.af3.YDeviceTable.DeltaValue = NULL;
}
break;
diff --git a/pango/opentype/ftxgsub.c b/pango/opentype/ftxgsub.c
index a5fb6026..b7e4c135 100644
--- a/pango/opentype/ftxgsub.c
+++ b/pango/opentype/ftxgsub.c
@@ -90,7 +90,7 @@
if ( !retptr )
return TT_Err_Invalid_Argument;
- if (( error = tt_face->goto_table( tt_face, TTAG_GSUB, stream, 0 ) ))
+ if (( error = tt_face->goto_table( tt_face, TTAG_GSUB, stream, NULL ) ))
return error;
base_offset = FILE_Pos();