Commit 2b03a7a5bc4b23d912e0d8d23c8486ac8eec8a1d
1 parent
b8076a74
renamed set_bit to cow_set_bit (Paul Brook)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1361 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
2 deletions
block-cow.c
... | ... | @@ -124,7 +124,7 @@ static int cow_open(BlockDriverState *bs, const char *filename) |
124 | 124 | return -1; |
125 | 125 | } |
126 | 126 | |
127 | -static inline void set_bit(uint8_t *bitmap, int64_t bitnum) | |
127 | +static inline void cow_set_bit(uint8_t *bitmap, int64_t bitnum) | |
128 | 128 | { |
129 | 129 | bitmap[bitnum / 8] |= (1 << (bitnum%8)); |
130 | 130 | } |
... | ... | @@ -198,7 +198,7 @@ static int cow_write(BlockDriverState *bs, int64_t sector_num, |
198 | 198 | if (ret != nb_sectors * 512) |
199 | 199 | return -1; |
200 | 200 | for (i = 0; i < nb_sectors; i++) |
201 | - set_bit(s->cow_bitmap, sector_num + i); | |
201 | + cow_set_bit(s->cow_bitmap, sector_num + i); | |
202 | 202 | return 0; |
203 | 203 | } |
204 | 204 | ... | ... |