dect
/
linux-2.6
Archived
13
0
Fork 0

[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>
This commit is contained in:
Adrian Bunk 2005-09-10 00:26:59 -07:00 committed by Linus Torvalds
parent 207f36eec9
commit ecec4cb7a9
1 changed files with 3 additions and 2 deletions

View File

@ -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;