diff options
author | Lee Duncan <lduncan@suse.com> | 2018-09-27 09:10:49 -0700 |
---|---|---|
committer | Lee Duncan <lduncan@suse.com> | 2018-09-27 09:10:49 -0700 |
commit | 6e5e0611d1aee56c9623de345666545ff8f28fb3 (patch) | |
tree | 2262953742466b5d57016c69322954a6c3ecc17a /utils | |
parent | 158f07b49ada0dbea5384186a2e45896198dda1b (diff) | |
download | open-iscsi-6e5e0611d1aee56c9623de345666545ff8f28fb3.tar.gz |
Fix qsort() comparator function call.
The compare function is supposed to match the prototype:
int (*compar)(const void *, const void *)
so the function nic_cmp() was declared incorrectly, which
makes gcc much happier.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/fwparam_ibft/fwparam_ppc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/fwparam_ibft/fwparam_ppc.c b/utils/fwparam_ibft/fwparam_ppc.c index 391faa2..71fa98d 100644 --- a/utils/fwparam_ibft/fwparam_ppc.c +++ b/utils/fwparam_ibft/fwparam_ppc.c @@ -319,9 +319,9 @@ static int find_nics(const char *fpath, const struct stat *sb, int tflag, return 0; } -int nic_cmp(const char **a, const char **b) +static int nic_cmp(const void *a, const void *b) { - return strcmp(*a, *b); + return strcmp(a, b); } static int find_initiator(const char *fpath, const struct stat *sb, int tflag, |