Changeset f2460a50 in mainline for uspace/lib/ext4/src/directory_index.c
- Timestamp:
- 2017-05-30T06:16:25Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c726209
- Parents:
- 719a208
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/src/directory_index.c
r719a208 rf2460a50 38 38 #include <errno.h> 39 39 #include <mem.h> 40 #include <sort.h>41 40 #include <stdlib.h> 42 41 #include <str.h> … … 668 667 * @param arg1 First entry 669 668 * @param arg2 Second entry 670 * @param dummy Unused parameter, can be NULL671 669 * 672 670 * @return Classic compare result … … 674 672 * 675 673 */ 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; 674 static 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; 680 679 681 680 if (entry1->hash == entry2->hash) … … 793 792 /* Sort all entries */ 794 793 qsort(sort_array, idx, sizeof(ext4_dx_sort_entry_t), 795 ext4_directory_dx_entry_comparator , NULL);794 ext4_directory_dx_entry_comparator); 796 795 797 796 /* Allocate new block for store the second part of entries */
Note:
See TracChangeset
for help on using the changeset viewer.