diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2006-03-13 14:48:45 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2006-03-13 14:48:45 +0000 |
commit | ef25813de6c6f6236a7368a306014606cb9b7479 (patch) | |
tree | 5b3984b8850a44056192fde50b1392544d52513f /sys/geom/mirror/g_mirror.c | |
parent | 0118b48b7ee12bfc142249ab7b691350499c1c98 (diff) | |
download | src-ef25813de6c6f6236a7368a306014606cb9b7479.tar.gz src-ef25813de6c6f6236a7368a306014606cb9b7479.zip |
Fix build on 64-bit platforms.
Notes
Notes:
svn path=/head/; revision=156684
Diffstat (limited to 'sys/geom/mirror/g_mirror.c')
-rw-r--r-- | sys/geom/mirror/g_mirror.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c index 96ef11c3545a..96b031601f5b 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. */ |