summaryrefslogtreecommitdiff
path: root/lib/qsort.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-12-17 16:51:59 -0500
committerWolfgang Denk <wd@denx.de>2011-01-09 17:57:37 +0100
commit560d424b6d7cd4205b062ad95f1b104bd4f8bcc3 (patch)
tree5a429e36ad18a8fa2e0b026d143c38d7f3d493af /lib/qsort.c
parent42df1e1618f2bcae308ad193a136b72b82103bea (diff)
downloadu-boot-imx-560d424b6d7cd4205b062ad95f1b104bd4f8bcc3.zip
u-boot-imx-560d424b6d7cd4205b062ad95f1b104bd4f8bcc3.tar.gz
u-boot-imx-560d424b6d7cd4205b062ad95f1b104bd4f8bcc3.tar.bz2
env: re-add support for auto-completion
Currently, only basic completion is supported (no globs), but this is what we had previously. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'lib/qsort.c')
-rw-r--r--lib/qsort.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/qsort.c b/lib/qsort.c
index e771dcf..1cc0d31 100644
--- a/lib/qsort.c
+++ b/lib/qsort.c
@@ -16,6 +16,7 @@
* bcc and gcc. */
#include <linux/types.h>
+#include <exports.h>
#if 0
#include <assert.h>
#else
@@ -67,3 +68,8 @@ void qsort(void *base,
} while (wgap);
}
}
+
+int strcmp_compar(const void *p1, const void *p2)
+{
+ return strcmp(*(const char **)p1, *(const char **)p2);
+}