From d1cfc560073dbe5bfcaa412b4fea16d6831e743e Mon Sep 17 00:00:00 2001 From: giraffedata Date: Wed, 24 Jul 2013 22:18:59 +0000 Subject: cleanup - declare qsort comparison routines as such git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1980 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/ppm/ppmtoilbm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'converter/ppm') diff --git a/converter/ppm/ppmtoilbm.c b/converter/ppm/ppmtoilbm.c index 69784b37..c861163f 100644 --- a/converter/ppm/ppmtoilbm.c +++ b/converter/ppm/ppmtoilbm.c @@ -354,7 +354,6 @@ do_ham_body ARGS((FILE *ifP, FILE *ofp, int cols, int rows, pixval maxval, pixval hammaxval, int nPlanes, pixel *cmap, int colors)); -static int hcmp (const void *va, const void *vb); static pixel *compute_ham_cmap ARGS((int cols, int rows, int maxval, int maxcolors, int *colorsP, int hbits)); @@ -365,6 +364,10 @@ typedef struct { } hentry; +#ifndef LITERAL_FN_DEF_MATCH +static qsort_comparison_fn hcmp; +#endif + static int hcmp(const void *va, const void *vb) { -- cgit 1.4.1