mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Fix warnings for XFS on 2.5.61
@ 2003-02-17 22:49 Stephen Hemminger
  2003-02-18  0:58 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2003-02-17 22:49 UTC (permalink / raw)
  To: owner-xfs; +Cc: Linux Kernel Mailing List, linux-xfs

This patch gets rid of the following warnings.

fs/xfs/support/qsort.c: In function `qsort':
fs/xfs/support/qsort.c:202: warning: duplicate `const'

diff -Nru a/fs/xfs/support/qsort.c b/fs/xfs/support/qsort.c
--- a/fs/xfs/support/qsort.c	Mon Feb 17 14:16:15 2003
+++ b/fs/xfs/support/qsort.c	Mon Feb 17 14:16:15 2003
@@ -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 *const thresh = min_t(char *const, end_ptr, base_ptr + max_thresh);
     register char *run_ptr;
 
     /* Find smallest element in first threshold and place it at the




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-18  0:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-17 22:49 [PATCH] Fix warnings for XFS on 2.5.61 Stephen Hemminger
2003-02-18  0:58 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®