diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-11-07 00:03:22 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-11-07 00:03:22 +0000 |
commit | e42cb3f3873bce85d42faf8828ae4d0441cf6bc7 (patch) | |
tree | 5f3a2422a65db6946c0403b2a8e4b49951ebf02c /nuttx/lib/lib_qsort.c | |
parent | 4cd65612ac80800caf9a2ff74bbb1fd93a80bbd8 (diff) | |
download | px4-nuttx-e42cb3f3873bce85d42faf8828ae4d0441cf6bc7.tar.gz px4-nuttx-e42cb3f3873bce85d42faf8828ae4d0441cf6bc7.tar.bz2 px4-nuttx-e42cb3f3873bce85d42faf8828ae4d0441cf6bc7.zip |
Fixes for Z80 compile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2240 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_qsort.c')
-rw-r--r-- | nuttx/lib/lib_qsort.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/lib/lib_qsort.c b/nuttx/lib/lib_qsort.c index 06e0d8b89..2b4083da5 100644 --- a/nuttx/lib/lib_qsort.c +++ b/nuttx/lib/lib_qsort.c @@ -87,9 +87,9 @@ * Private Function Prototypes ****************************************************************************/ -static inline char *med3(char *, char *, char *, - int (*)(const void *, const void *)); -static inline void swapfunc(char *, char *, int, int); +static inline void swapfunc(char *a, char *b, int n, int swaptype); +static inline char *med3(char *a, char *b, char *c, + int (*compar)(const void *, const void *)); /**************************************************************************** * Private Functions @@ -108,7 +108,7 @@ static inline void swapfunc(char *a, char *b, int n, int swaptype) } static inline char *med3(char *a, char *b, char *c, - int (*compar)(const void *, const void *)) + int (*compar)(const void *, const void *)) { return compar(a, b) < 0 ? (compar(b, c) < 0 ? b : (compar(a, c) < 0 ? c : a )) |