From 346d3b3cac253d2db41205151c185bf2fd9dda16 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Wed, 22 Sep 2004 18:14:55 +0000 Subject: [PATCH] Cleanups from 'sparse', #149922, Kjartan Maraas Wed Sep 22 14:07:47 2004 Owen Taylor 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. --- src/ftxgdef.c | 2 +- src/ftxgpos.c | 6 +++--- src/ftxgsub.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ftxgdef.c b/src/ftxgdef.c index 449b2e2dc..60ad5816f 100644 --- a/src/ftxgdef.c +++ b/src/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/src/ftxgpos.c b/src/ftxgpos.c index 962b66631..3ac134824 100644 --- a/src/ftxgpos.c +++ b/src/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/src/ftxgsub.c b/src/ftxgsub.c index a5fb6026c..b7e4c1353 100644 --- a/src/ftxgsub.c +++ b/src/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();