projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libfdt: Add helper function to create a trivial, empty tree
[oweals/u-boot.git]
/
lib
/
qsort.c
diff --git
a/lib/qsort.c
b/lib/qsort.c
index e771dcfcf2756504bc53916cd0366643ff70a81d..57098841f9a40ff9bd590075845ca6b9b06f8a9a 100644
(file)
--- a/
lib/qsort.c
+++ b/
lib/qsort.c
@@
-16,11
+16,8
@@
* bcc and gcc. */
#include <linux/types.h>
* bcc and gcc. */
#include <linux/types.h>
-#if 0
-#include <assert.h>
-#else
-#define assert(arg)
-#endif
+#include <common.h>
+#include <exports.h>
void qsort(void *base,
size_t nel,
void qsort(void *base,
size_t nel,
@@
-67,3
+64,8
@@
void qsort(void *base,
} while (wgap);
}
}
} while (wgap);
}
}
+
+int strcmp_compar(const void *p1, const void *p2)
+{
+ return strcmp(*(const char **)p1, *(const char **)p2);
+}