diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-12-19 20:34:24 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-12-19 20:34:24 -0500 |
commit | 825d180c0758a3f5a4dd8dd5d48d98952bf7a0ae (patch) | |
tree | 3c0f2987c0520a3b6b82113ecbccc360948c0e0e /include/linux/sort.h | |
parent | 94cafcb8e5c196afefebdc090ba0594db4cf746f (diff) |
Delete more shim layer code
Diffstat (limited to 'include/linux/sort.h')
-rw-r--r-- | include/linux/sort.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/linux/sort.h b/include/linux/sort.h index d534da2b..afea0445 100644 --- a/include/linux/sort.h +++ b/include/linux/sort.h @@ -1,10 +1,13 @@ #ifndef _LINUX_SORT_H #define _LINUX_SORT_H -#include <linux/types.h> +#include <stdlib.h> -void sort(void *base, size_t num, size_t size, - int (*cmp)(const void *, const void *), - void (*swap)(void *, void *, int)); +static inline void sort(void *base, size_t num, size_t size, + int (*cmp_func)(const void *, const void *), + void (*swap_func)(void *, void *, int size)) +{ + return qsort(base, num, size, cmp_func); +} #endif |