X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=lib%2Fqsort.c;h=57098841f9a40ff9bd590075845ca6b9b06f8a9a;hb=c7964f86c28da4e4cf5a7cc4430461ea17218d80;hp=e771dcfcf2756504bc53916cd0366643ff70a81d;hpb=1032d97496f6d534bf0030a5779ff1cb38cc9ebf;p=oweals%2Fu-boot.git 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); +}