X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib%2Fqsort.c;h=57098841f9a40ff9bd590075845ca6b9b06f8a9a;hb=16dde8945ea948e675e48326e740e098dea2035e;hp=e771dcfcf2756504bc53916cd0366643ff70a81d;hpb=17dd883c5b76bdade0f7a48f2eb02d918a5ebef9;p=u-boot diff --git a/lib/qsort.c b/lib/qsort.c index e771dcfcf2..57098841f9 100644 --- a/lib/qsort.c +++ b/lib/qsort.c @@ -16,11 +16,8 @@ * bcc and gcc. */ #include -#if 0 -#include -#else -#define assert(arg) -#endif +#include +#include void qsort(void *base, size_t nel, @@ -67,3 +64,8 @@ void qsort(void *base, } while (wgap); } } + +int strcmp_compar(const void *p1, const void *p2) +{ + return strcmp(*(const char **)p1, *(const char **)p2); +}