[Disksim-users] run on 64bit systems ...
Michael Meeks
michael.meeks at novell.com
Fri Sep 7 09:38:20 EDT 2007
So,
When we apply this, disksim starts to run on 64bit systems. Is there
-really- no-one collecting patches / build-fixes for disksim, wrt.
rolling a new release ?
I would have thought the combination of "build with recent gcc's" and
"run on 64bit systems" would be worth others having ? :-) Fix from Radek
Doulik FWIW.
Regards,
Michael.
--- a/disksim-3.0/libparam/util.c
+++ b/disksim-3.0/libparam/util.c
@@ -805,7 +805,7 @@ int lp_add_param(struct lp_param ***b, i
/* didn't find a free slot -- double the array */
int newlen = 2 * (*plen) + 1;
(*b) = realloc((*b), newlen * sizeof(int *));
- bzero((int *)(*b) + *plen, ((*plen) + 1) * sizeof(int*));
+ bzero((int **)(*b) + *plen, ((*plen) + 1) * sizeof(int*));
(*b)[(*plen)] = p;
*plen = newlen;
}
--
michael.meeks at novell.com <><, Pseudo Engineer, itinerant idiot
More information about the Disksim-users
mailing list