Skip to contentSkip to conversation

Use min_t() instead of min() in fs/xfs/support/qsort.c

PATCH New Bob Miller 1 participant 1 message Nov 21, 2002 XFS filesystem

lore
Share & tools
lore

Bob Miller

author
#0 lore raw

PATCH 1/1 Use min_t() instead of min() in fs/xfs/support/qsort.c

This change removes a "duplicate 'const'" compiler warning.

fs/xfs/support/qsort.c +1 -1
diff -Nru a/fs/xfs/support/qsort.c b/fs/xfs/support/qsort.c
@@ -199,7 +199,7 @@
   {
     char *const end_ptr = &base_ptr[size * (total_elems - 1)];
     char *tmp_ptr = base_ptr;
-    char *thresh = min(end_ptr, base_ptr + max_thresh);
+    char *thresh = min_t(const int, end_ptr, base_ptr + max_thresh);
     register char *run_ptr;
 
     /* Find smallest element in first threshold and place it at the
Signature · 2 lines
Bob Miller					Email: [email protected]
Open Source Development Lab			Phone: 503.626.2455 Ext. 17