File safte-monitor.ioctl.patch of Package safte-monitor

--- safte-monitor-0.0.5/src/qlogic_api.h
+++ safte-monitor-0.0.5/src/qlogic_api.h
@@ -81,7 +81,7 @@
 #define QLMULTIPATH_MAGIC 'y'
 
 #define QL_IOCTL_QUERY			         /* QUERY */	\
-    _IOWR(QLMULTIPATH_MAGIC, 0x00, sizeof(QL_IOCTL))
+    _IOWR(QLMULTIPATH_MAGIC, 0x00, QL_IOCTL)
 
 #define	QL_IOCTL_SC_QUERY_HBA_NODE	1
 #define	QL_IOCTL_SC_QUERY_HBA_PORT	2
@@ -93,10 +93,10 @@
 #define	QL_IOCTL_SC_QUERY_CHIP		8
 
 #define QL_IOCTL_STARTIOCTL			 /* STARTIOCTL */ \
-    _IOWR(QLMULTIPATH_MAGIC, 0xff, sizeof(QL_IOCTL))
+    _IOWR(QLMULTIPATH_MAGIC, 0xff, QL_IOCTL)
 #define QL_IOCTL_SETINSTANCE			 /* SETINSTANCE */ \
-    _IOWR(QLMULTIPATH_MAGIC, 0xfe, sizeof(QL_IOCTL))
+    _IOWR(QLMULTIPATH_MAGIC, 0xfe, QL_IOCTL)
 #define	QL_IOCTL_WWPN_TO_SCSIADDR		 /* WWPN_TO_SCSIADDR */ \
-    _IOWR(QLMULTIPATH_MAGIC, 0xfd, sizeof(QL_IOCTL))
+    _IOWR(QLMULTIPATH_MAGIC, 0xfd, QL_IOCTL)
 
 #endif
openSUSE Build Service is sponsored by