bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 14/17] Fix initialization from incompatible pointer type


From: Guillem Jover
Subject: [PATCH 14/17] Fix initialization from incompatible pointer type
Date: Thu, 25 Aug 2011 15:22:37 +0200

* linux/dev/glue/block.c (device_get_status): Cast `hg' to `unsigned long'
in ioctl call.
---
 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...  */
-- 
1.7.5.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]