diff options
author | Gvozden Neskovic <neskovic@gmail.com> | 2016-08-27 18:12:53 +0000 |
---|---|---|
committer | Brian Behlendorf <behlendorf1@llnl.gov> | 2016-08-31 21:35:34 +0000 |
commit | ee36c709c3d5f7040e1bd11f5c75318aa03e789f (patch) | |
tree | 7af1c677eeec84cba15c1265c43f5777c8a0614f /module/zfs/dsl_deleg.c | |
parent | 9d69e9b268a1a0af3117871608fd3a87db1ce586 (diff) | |
download | src-ee36c709c3d5f7040e1bd11f5c75318aa03e789f.tar.gz src-ee36c709c3d5f7040e1bd11f5c75318aa03e789f.zip |
Diffstat (limited to 'module/zfs/dsl_deleg.c')
-rw-r--r-- | module/zfs/dsl_deleg.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/module/zfs/dsl_deleg.c b/module/zfs/dsl_deleg.c index eb39cff57f2a..f17cedb08213 100644 --- a/module/zfs/dsl_deleg.c +++ b/module/zfs/dsl_deleg.c @@ -393,14 +393,13 @@ typedef struct perm_set { static int perm_set_compare(const void *arg1, const void *arg2) { - const perm_set_t *node1 = arg1; - const perm_set_t *node2 = arg2; + const perm_set_t *node1 = (const perm_set_t *)arg1; + const perm_set_t *node2 = (const perm_set_t *)arg2; int val; val = strcmp(node1->p_setname, node2->p_setname); - if (val == 0) - return (0); - return (val > 0 ? 1 : -1); + + return (AVL_ISIGN(val)); } /* |