Ignore:
Timestamp:
2017-10-17T13:11:35Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60af4cdb
Parents:
dbf32b1 (diff), a416d070 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/src/directory_index.c

    rdbf32b1 r95c675b  
    3838#include <errno.h>
    3939#include <mem.h>
    40 #include <sort.h>
    4140#include <stdlib.h>
    4241#include <str.h>
     
    668667 * @param arg1  First entry
    669668 * @param arg2  Second entry
    670  * @param dummy Unused parameter, can be NULL
    671669 *
    672670 * @return Classic compare result
     
    674672 *
    675673 */
    676 static int ext4_directory_dx_entry_comparator(void *arg1, void *arg2, void *dummy)
    677 {
    678         ext4_dx_sort_entry_t *entry1 = arg1;
    679         ext4_dx_sort_entry_t *entry2 = arg2;
     674static int ext4_directory_dx_entry_comparator(const void *arg1,
     675    const void *arg2)
     676{
     677        ext4_dx_sort_entry_t const *entry1 = arg1;
     678        ext4_dx_sort_entry_t const *entry2 = arg2;
    680679       
    681680        if (entry1->hash == entry2->hash)
     
    793792        /* Sort all entries */
    794793        qsort(sort_array, idx, sizeof(ext4_dx_sort_entry_t),
    795             ext4_directory_dx_entry_comparator, NULL);
     794            ext4_directory_dx_entry_comparator);
    796795       
    797796        /* Allocate new block for store the second part of entries */
Note: See TracChangeset for help on using the changeset viewer.