Skip to content

Commit

Permalink
xen/sort: address violations of MISRA C:2012 Rule 8.2
Browse files Browse the repository at this point in the history
Add missing parameter names. No functional change.

Signed-off-by: Federico Serafini <[email protected]>
Acked-by: Jan Beulich <[email protected]>
  • Loading branch information
FedericoSerafini authored and jbeulich committed Nov 24, 2023
1 parent a66b02a commit 80c153c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xen/include/xen/sort.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
extern gnu_inline
#endif
void sort(void *base, size_t num, size_t size,
int (*cmp)(const void *, const void *),
void (*swap)(void *, void *, size_t))
int (*cmp)(const void *a, const void *b),
void (*swap)(void *a, void *b, size_t size))
{
/* pre-scale counters for performance */
size_t i = (num / 2) * size, n = num * size, c, r;
Expand Down

0 comments on commit 80c153c

Please sign in to comment.