[2.6 patch] lib/sort.c: small cleanups
From: Adrian Bunk (bunk_at_stusta.de)
Date: 09/03/05
- Previous message: Reuben Farrelly: "Re: 2.6.13-mm1: hangs during boot ..."
- Next in thread: Ingo Oeser: "Re: [2.6 patch] lib/sort.c: small cleanups"
- Reply: Ingo Oeser: "Re: [2.6 patch] lib/sort.c: small cleanups"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 3 Sep 2005 15:25:31 +0200 To: Matt Mackall <mpm@selenic.com>
This patch contains the following small cleanups:
- make two needlessly global functions static
- every file should #include the header files containing the prototypes
of it's global functions
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.13-mm1-full/lib/sort.c.old 2005-09-03 14:02:17.000000000 +0200
+++ linux-2.6.13-mm1-full/lib/sort.c 2005-09-03 14:03:02.000000000 +0200
@@ -6,15 +6,16 @@
#include <linux/kernel.h>
#include <linux/module.h>
+#include <linux/sort.h>
-void u32_swap(void *a, void *b, int size)
+static void u32_swap(void *a, void *b, int size)
{
u32 t = *(u32 *)a;
*(u32 *)a = *(u32 *)b;
*(u32 *)b = t;
}
-void generic_swap(void *a, void *b, int size)
+static void generic_swap(void *a, void *b, int size)
{
char t;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Reuben Farrelly: "Re: 2.6.13-mm1: hangs during boot ..."
- Next in thread: Ingo Oeser: "Re: [2.6 patch] lib/sort.c: small cleanups"
- Reply: Ingo Oeser: "Re: [2.6 patch] lib/sort.c: small cleanups"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|