[PATCH] Fix ioctl size argument in plugins/s390/format.c

Stefan Bader <[email protected]>
Newsgroups gmane.linux.evms.devel
Message-ID <OF08EDA525.1351B756-ONC1257267.00463254-C1257267.0046D043@de.ibm.com>
Hi,

the following little patch fixes the argument for the _IOR macro. Recent 
kernel headers
will check for this. Thanks.

Mit freundlichem Gruß / Regards,
Stefan Bader

SW Linux on zSeries Development
[email protected]
----------------------------------------------------------------------------------
  When all other means of communication fail, try words.



Index: engine/plugins/s390/format.c
===================================================================
RCS file: /cvsroot/evms/evms2/engine/plugins/s390/format.c,v
retrieving revision 1.22
diff -u -p -r1.22 format.c
--- engine/plugins/s390/format.c        12 Dec 2004 14:40:21 -0000 1.22
+++ engine/plugins/s390/format.c        18 Jan 2007 12:46:14 -0000
@@ -37,7 +37,7 @@
 #include "helpers.h"
 #include "format.h"
 
-#define BLKGETSIZE64 _IOR(0x12,114,sizeof(u_int64_t))
+#define BLKGETSIZE64 _IOR(0x12,114,u_int64_t)
 #define BLKSSZGET    _IO(0x12,104)
 #define HDIO_GETGEO  0x0301

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Evms-devel mailing list
[email protected]
To subscribe/unsubscribe, please visit:
https://lists.sourceforge.net/lists/listinfo/evms-devel
evms-ioctl.diff (application/octet-stream, 574 B)
Index: engine/plugins/s390/format.c
===================================================================
RCS file: /cvsroot/evms/evms2/engine/plugins/s390/format.c,v
retrieving revision 1.22
diff -u -p -r1.22 format.c
--- engine/plugins/s390/format.c	12 Dec 2004 14:40:21 -0000	1.22
+++ engine/plugins/s390/format.c	18 Jan 2007 12:46:14 -0000
@@ -37,7 +37,7 @@
 #include "helpers.h"
 #include "format.h"
 
-#define BLKGETSIZE64 _IOR(0x12,114,sizeof(u_int64_t))
+#define BLKGETSIZE64 _IOR(0x12,114,u_int64_t)
 #define BLKSSZGET    _IO(0x12,104)
 #define HDIO_GETGEO  0x0301
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.