diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-08-02 07:49:25 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-08-02 07:49:25 -0400 |
commit | a7c89dd1eb4c3cf6ebedce193693fceadcdf5995 (patch) | |
tree | abf588e2d5de22ac412fcf34e8fd91970688b9f7 /examples | |
parent | 6c0a925fd6de88f2d7ed20051cbadbaf39eddc01 (diff) | |
download | pango-a7c89dd1eb4c3cf6ebedce193693fceadcdf5995.tar.gz |
One more warning fix
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pangowin32tobmp.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/pangowin32tobmp.c b/examples/pangowin32tobmp.c index 15e473ec..2a945d70 100644 --- a/examples/pangowin32tobmp.c +++ b/examples/pangowin32tobmp.c @@ -50,10 +50,13 @@ calc_duration (GTimeVal *tv1, GTimeVal *tv0) } static int -compare_font_family (PangoFontFamily** a, - PangoFontFamily** b) +compare_font_family (gconstpointer a, + gconstpointer b) { - return strcmp (pango_font_family_get_name (*a), pango_font_family_get_name (*b)); + const PangoFontFamily** aa = (const PangoFontFamily **)a; + const PangoFontFamily** bb = (const PangoFontFamily **)b; + + return strcmp (pango_font_family_get_name (*aa), pango_font_family_get_name (*bb)); } int main (int argc, char **argv) |