Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

src/lib/bitmap.c: mark some functions as static

...and remove their definitions from bitmap.h

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
  • Loading branch information...
commit 73e21126c35b79ac4e21b62c49ad9e9d6b3ba322 1 parent 3bceee8
Kirill Kolyshkin kolyshkin authored
Showing with 3 additions and 8 deletions.
  1. +0 −5 include/bitmap.h
  2. +3 −3 src/lib/bitmap.c
5 include/bitmap.h
View
@@ -70,12 +70,7 @@ static inline void bitmap_clear_bit(int nr, unsigned long *maskp)
maskp[BIT_WORD(nr)] &= ~BIT_MASK(nr);
}
-int bitmap_find_first_bit(const unsigned long *maskp, int nmaskbits);
-int bitmap_find_next_bit(const unsigned long *maskp, int nmaskbits, int offset);
int bitmap_find_first_zero_bit(const unsigned long *maskp, int nmaskbits);
-int bitmap_find_next_zero_bit(const unsigned long *maskp,
- int nmaskbits, int offset);
-
int bitmap_parse(const char *str, unsigned long *maskp, int nmaskbits);
int bitmap_snprintf(char *buf, unsigned int buflen,
const unsigned long *maskp, int nmaskbits);
6 src/lib/bitmap.c
View
@@ -23,7 +23,7 @@
#include "bitmap.h"
-int bitmap_find_first_bit(const unsigned long *maskp, int nmaskbits)
+static int bitmap_find_first_bit(const unsigned long *maskp, int nmaskbits)
{
int i, n;
int nmasklongs = BITS_TO_LONGS(nmaskbits);
@@ -44,7 +44,7 @@ int bitmap_find_first_bit(const unsigned long *maskp, int nmaskbits)
return i;
}
-int bitmap_find_next_bit(const unsigned long *maskp, int nmaskbits, int offset)
+static int bitmap_find_next_bit(const unsigned long *maskp, int nmaskbits, int offset)
{
int n;
@@ -84,7 +84,7 @@ int bitmap_find_first_zero_bit(const unsigned long *maskp, int nmaskbits)
return i;
}
-int bitmap_find_next_zero_bit(const unsigned long *maskp,
+static int bitmap_find_next_zero_bit(const unsigned long *maskp,
int nmaskbits, int offset)
{
int n;
Please sign in to comment.
Something went wrong with that request. Please try again.