summaryrefslogtreecommitdiff
path: root/block-cow.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-04-10 14:39:05 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-04-10 14:39:05 +0000
commit2b03a7a5bc4b23d912e0d8d23c8486ac8eec8a1d (patch)
tree94939ff95b13511ce08ef1a9ac78ae59db630081 /block-cow.c
parentb8076a748d52db5f5258c29fe342b8593a0b9914 (diff)
downloadqemu-2b03a7a5bc4b23d912e0d8d23c8486ac8eec8a1d.tar.gz
qemu-2b03a7a5bc4b23d912e0d8d23c8486ac8eec8a1d.tar.bz2
qemu-2b03a7a5bc4b23d912e0d8d23c8486ac8eec8a1d.zip
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
Diffstat (limited to 'block-cow.c')
-rw-r--r--block-cow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block-cow.c b/block-cow.c
index 81bd334cc1..15270dfd3f 100644
--- a/block-cow.c
+++ b/block-cow.c
@@ -124,7 +124,7 @@ static int cow_open(BlockDriverState *bs, const char *filename)
return -1;
}
-static inline void set_bit(uint8_t *bitmap, int64_t bitnum)
+static inline void cow_set_bit(uint8_t *bitmap, int64_t bitnum)
{
bitmap[bitnum / 8] |= (1 << (bitnum%8));
}
@@ -198,7 +198,7 @@ static int cow_write(BlockDriverState *bs, int64_t sector_num,
if (ret != nb_sectors * 512)
return -1;
for (i = 0; i < nb_sectors; i++)
- set_bit(s->cow_bitmap, sector_num + i);
+ cow_set_bit(s->cow_bitmap, sector_num + i);
return 0;
}