Skip to contentSkip to conversation

xen/sort: address violations of MISRA C:2012 Rule 8.2

PATCH In review Federico Serafini 2 participants 2 messages Nov 23, 2023 – Nov 24, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 xen/sort: address violations of MISRA C:2012 Rule 8.2

Add missing parameter names. No functional change.

---
Changes in v2:
- used "a" and "b" for cmp.

---
 xen/include/xen/sort.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
xen/include/xen/sort.h +2 -2
index 2f52ff85b9..b953286284 100644
@@ -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;
Signature · 1 line
2.34.1