aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sort.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2005-09-10 03:26:59 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-10 13:06:31 -0400
commitecec4cb7a9df5f61fe00710d2f2c69ce9a3b1d40 (patch)
treeb6a378836cf863f81b1f5a32a2e747c38524af4e /lib/sort.c
parent207f36eec9e7b1077d7a0aaadb4800e2c9b4cfa4 (diff)
[PATCH] lib/sort.c: small cleanups
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> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'lib/sort.c')
-rw-r--r--lib/sort.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sort.c b/lib/sort.c
index b73dbb0e7c83..ddc4d35df289 100644
--- a/lib/sort.c
+++ b/lib/sort.c
@@ -6,15 +6,16 @@
6 6
7#include <linux/kernel.h> 7#include <linux/kernel.h>
8#include <linux/module.h> 8#include <linux/module.h>
9#include <linux/sort.h>
9 10
10void u32_swap(void *a, void *b, int size) 11static void u32_swap(void *a, void *b, int size)
11{ 12{
12 u32 t = *(u32 *)a; 13 u32 t = *(u32 *)a;
13 *(u32 *)a = *(u32 *)b; 14 *(u32 *)a = *(u32 *)b;
14 *(u32 *)b = t; 15 *(u32 *)b = t;
15} 16}
16 17
17void generic_swap(void *a, void *b, int size) 18static void generic_swap(void *a, void *b, int size)
18{ 19{
19 char t; 20 char t;
20 21