diff options
author | ru <ru@FreeBSD.org> | 2006-03-13 14:48:45 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2006-03-13 14:48:45 +0000 |
commit | 9348187bf1e9a30f19af3f4484f80f4ea51984ea (patch) | |
tree | 5b3984b8850a44056192fde50b1392544d52513f /sys/geom | |
parent | 936cd92dd2eb4e38090d41a7f73a5608d33d95a1 (diff) | |
download | FreeBSD-src-9348187bf1e9a30f19af3f4484f80f4ea51984ea.zip FreeBSD-src-9348187bf1e9a30f19af3f4484f80f4ea51984ea.tar.gz |
Fix build on 64-bit platforms.
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/mirror/g_mirror.c | 4 | ||||
-rw-r--r-- | sys/geom/raid3/g_raid3.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c index 96ef11c..96b0316 100644 --- a/sys/geom/mirror/g_mirror.c +++ b/sys/geom/mirror/g_mirror.c @@ -1283,7 +1283,7 @@ g_mirror_sync_request(struct bio *bp) /* Don't send more synchronization requests. */ sync->ds_inflight--; if (sync->ds_bios != NULL) { - i = (int)bp->bio_caller1; + i = (int)(uintptr_t)bp->bio_caller1; sync->ds_bios[i] = NULL; } free(bp->bio_data, M_MIRROR); @@ -1897,7 +1897,7 @@ g_mirror_sync_start(struct g_mirror_disk *disk) bp->bio_done = g_mirror_sync_done; bp->bio_from = disk->d_sync.ds_consumer; bp->bio_to = sc->sc_provider; - bp->bio_caller1 = (void *)i; + bp->bio_caller1 = (void *)(uintptr_t)i; } /* Increase the number of disks in SYNCHRONIZING state. */ diff --git a/sys/geom/raid3/g_raid3.c b/sys/geom/raid3/g_raid3.c index edeb0f3..9f94209 100644 --- a/sys/geom/raid3/g_raid3.c +++ b/sys/geom/raid3/g_raid3.c @@ -1612,7 +1612,7 @@ g_raid3_sync_request(struct bio *bp) /* Don't send more synchronization requests. */ sync->ds_inflight--; if (sync->ds_bios != NULL) { - i = (int)bp->bio_caller1; + i = (int)(uintptr_t)bp->bio_caller1; sync->ds_bios[i] = NULL; } free(bp->bio_data, M_RAID3); @@ -2131,7 +2131,7 @@ g_raid3_sync_start(struct g_raid3_softc *sc) bp->bio_done = g_raid3_sync_done; bp->bio_from = disk->d_sync.ds_consumer; bp->bio_to = sc->sc_provider; - bp->bio_caller1 = (void *)n; + bp->bio_caller1 = (void *)(uintptr_t)n; } /* Set the number of in-flight synchronization requests. */ |