diff options
author | Guillem Jover <guillem@hadrons.org> | 2011-08-25 15:22:37 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-08-27 01:02:58 +0200 |
commit | 91640ede1f8cdb066b2e562be628480ae6c83be6 (patch) | |
tree | b24587e101c2cc1d18f74192074cf4da49366dd4 /linux/dev/glue | |
parent | d4a093cc729c4079157c448a6cd36c7c9781e302 (diff) |
Fix initialization from incompatible pointer type
* linux/dev/glue/block.c (device_get_status): Cast `hg' to `unsigned long'
in ioctl call.
Diffstat (limited to 'linux/dev/glue')
-rw-r--r-- | linux/dev/glue/block.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/dev/glue/block.c b/linux/dev/glue/block.c index cec9687..f28644e 100644 --- a/linux/dev/glue/block.c +++ b/linux/dev/glue/block.c @@ -1668,7 +1668,7 @@ device_get_status (void *d, dev_flavor_t flavor, dev_status_t status, INIT_DATA(); if ((*bd->ds->fops->ioctl) (&td.inode, &td.file, - HDIO_GETGEO, &hg)) + HDIO_GETGEO, (unsigned long)&hg)) return D_INVALID_OPERATION; dp->dp_type = DPT_WINI; /* XXX: It may be a floppy... */ |