[ofw] [OPENSM] osm_sa.c - void * arithmetic causes problems

Stan C. Smith stan.smith at intel.com
Wed Sep 30 13:20:59 PDT 2009


The Microsoft WDK (Windows Driver Kit) compiler does not understand void* arithmetic.
Replace void* with 'unsigned char *'.

Signed-off-by: stan smith <stan.smith at intel.com>

diff --git a/opensm/opensm/osm_sa.c b/opensm/opensm/osm_sa.c
index 02737c2..b1a3d5e 100644
--- a/opensm/opensm/osm_sa.c
+++ b/opensm/opensm/osm_sa.c
@@ -411,7 +411,7 @@ void osm_sa_respond(osm_sa_t *sa, osm_madw_t *madw, size_t attr_size,
 #ifndef VENDOR_RMPP_SUPPORT
 	unsigned trim_num_rec;
 #endif
-	void *p;
+	unsigned char *p;
 
 	sa_mad = osm_madw_get_sa_mad_ptr(madw);
 	num_rec = cl_qlist_count(list);




More information about the ofw mailing list