ewah: support platforms that require aligned reads
[gitweb.git] / test-mergesort.c
index 1dd82fd67f78bf2f004a19e97315e71d0fd7c903..ea3b959e94ff6f53726d4fce955bca1181a3be07 100644 (file)
@@ -22,7 +22,7 @@ static int compare_strings(const void *a, const void *b)
        return strcmp(x->text, y->text);
 }
 
-int main(int argc, const char **argv)
+int main(int argc, char **argv)
 {
        struct line *line, *p = NULL, *lines = NULL;
        struct strbuf sb = STRBUF_INIT;
@@ -42,7 +42,7 @@ int main(int argc, const char **argv)
                p = line;
        }
 
-       lines = mergesort(lines, get_next, set_next, compare_strings);
+       lines = llist_mergesort(lines, get_next, set_next, compare_strings);
 
        while (lines) {
                printf("%s", lines->text);