| To: | owner-xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH] Fix warnings for XFS on 2.5.61 |
| From: | Stephen Hemminger <shemminger@xxxxxxxx> |
| Date: | 17 Feb 2003 14:49:57 -0800 |
| Cc: | Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, linux-xfs@xxxxxxxxxxx |
| Organization: | Open Source Devlopment Lab |
| Sender: | linux-xfs-bounce@xxxxxxxxxxx |
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | TAKE - xfsprogs, Nathan Scott |
|---|---|
| Next by Date: | Re: converting XFS log v1 -> v2, Bernhard Erdmann |
| Previous by Thread: | TAKE - xfsprogs, Nathan Scott |
| Next by Thread: | Re: [PATCH] Fix warnings for XFS on 2.5.61, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |