Skip to content

Commit

Permalink
[PATCH] lib/sort.c: small cleanups
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
AdrianBunk authored and Linus Torvalds committed Sep 10, 2005
1 parent 207f36e commit ecec4cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ecec4cb

Please sign in to comment.