From: ceriel Date: Wed, 16 Oct 1991 16:08:27 +0000 (+0000) Subject: qsort arg was wrong for ANSI C X-Git-Tag: release-5-5~723 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=19a47cfa525c73091e3d02f2895b480da04fe5af;p=ack.git qsort arg was wrong for ANSI C --- diff --git a/lang/fortran/comp/sysdep.c b/lang/fortran/comp/sysdep.c index 62ec74c59..dc5e06f74 100644 --- a/lang/fortran/comp/sysdep.c +++ b/lang/fortran/comp/sysdep.c @@ -350,8 +350,12 @@ dsort(from, to) #else static int +#ifdef __STDC__ +compare(const void *a, const void *b) +#else compare(a,b) char *a, *b; +#endif { return strcmp(*(char **)a, *(char **)b); } dsort(from, to)