diff options
author | Roland McGrath <roland@gnu.org> | 1999-10-02 05:59:29 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-10-02 05:59:29 +0000 |
commit | 0093fda9e85344fe47f162e1a5627479c183947a (patch) | |
tree | 1632a2f3ab23adc385a0f0983b63e8555c130d28 /ext2fs/balloc.c | |
parent | c0becc25a2fadfd8b03c8dbf6b101a5925a6aeed (diff) | |
download | hurd-0093fda9e85344fe47f162e1a5627479c183947a.tar.gz hurd-0093fda9e85344fe47f162e1a5627479c183947a.tar.bz2 hurd-0093fda9e85344fe47f162e1a5627479c183947a.zip |
1999-10-02 Roland McGrath <roland@baalperazim.frob.com>
* bitmap.c (count_free, find_next_zero_bit, find_first_zero_bit):
Make these all static inline.
(ffz, ffz_nibble_map): Function and variable removed.
(ffz): Replace decl with macro defined in terms of ffs.
* ext2fs.h (count_free, find_next_zero_bit, find_first_zero_bit, ffz):
Remove these declarations.
* Makefile (SRCS): Remove bitmap.c.
(LCLHDRS): Add bitmap.c here instead.
* balloc.c, ialloc.c: #include "bitmap.c" here.
Diffstat (limited to 'ext2fs/balloc.c')
-rw-r--r-- | ext2fs/balloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext2fs/balloc.c b/ext2fs/balloc.c index 661894f6..437febaa 100644 --- a/ext2fs/balloc.c +++ b/ext2fs/balloc.c @@ -42,7 +42,7 @@ #include <string.h> #include "ext2fs.h" - +#include "bitmap.c" /* Returns a pointer to the first occurence of CH in the buffer BUF of len LEN, or BUF + LEN if CH doesn't occur. */ @@ -52,7 +52,6 @@ memscan (void *buf, unsigned char ch, size_t len) return memchr (buf, ch, len) ?: buf + len; } - #define in_range(b, first, len) ((b) >= (first) && (b) <= (first) + (len) - 1) void |