]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib/qsort.c
Include common.h in qsort.c to fix build warning
[karo-tx-uboot.git] / lib / qsort.c
index e771dcfcf2756504bc53916cd0366643ff70a81d..57098841f9a40ff9bd590075845ca6b9b06f8a9a 100644 (file)
  * 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,
@@ -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);
+}