crc16-ccitt: Rename file with CRC-16-CCITT implementation to crc16-ccitt.c
[platform/kernel/u-boot.git] / lib / qsort.c
index e771dcf..2f18588 100644 (file)
  * calculation, as well as to reduce the generated code size with
  * bcc and gcc. */
 
+#include <log.h>
 #include <linux/types.h>
-#if 0
-#include <assert.h>
-#else
-#define assert(arg)
-#endif
+#include <common.h>
+#include <exports.h>
+#include <sort.h>
 
 void qsort(void  *base,
           size_t nel,
@@ -67,3 +66,8 @@ void qsort(void  *base,
                } while (wgap);
        }
 }
+
+int strcmp_compar(const void *p1, const void *p2)
+{
+       return strcmp(*(const char **)p1, *(const char **)p2);
+}