projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Split qsort from the main Yaffs Direct base
[yaffs2.git]
/
direct
/
optional_sort
/
qsort.c
diff --git
a/direct/yaffs_qsort.c
b/direct/optional_sort/qsort.c
similarity index 97%
rename from
direct/yaffs_qsort.c
rename to
direct/optional_sort/qsort.c
index afd1ffa799ead0a2d197b0a5f42f4e99a81ca3a1..9c7789932da0bb85b98cfa498641c5120be38123 100644
(file)
--- a/
direct/yaffs_qsort.c
+++ b/
direct/optional_sort/qsort.c
@@
-27,8
+27,8
@@
* SUCH DAMAGE.
*/
* SUCH DAMAGE.
*/
-#include
"yportenv.h"
-/* #include <linux/string.h> */
+#include
<stdlib.h>
+#include <string.h>
/*
* Qsort routine from Bentley & McIlroy's "Engineering a Sort Function".
/*
* Qsort routine from Bentley & McIlroy's "Engineering a Sort Function".
@@
-80,7
+80,7
@@
med3(char *a, char *b, char *c, int (*cmp)(const void *, const void *))
#endif
void
#endif
void
-
yaffs_
qsort(void *aa, size_t n, size_t es,
+qsort(void *aa, size_t n, size_t es,
int (*cmp)(const void *, const void *))
{
char *pa, *pb, *pc, *pd, *pl, *pm, *pn;
int (*cmp)(const void *, const void *))
{
char *pa, *pb, *pc, *pd, *pl, *pm, *pn;