I see this is already applied, but why all the type trickery here? Why
not just:
memcpy(dmabuf, sgbuffer, amount);
dmabuf += amount / sizeof(dmabuf);
void * arithmetic is a gcc-ism. Isn't it better to cast to char *, since
the meaning will be a bit more clear.
~Ryan
--
Bluewater Systems Ltd - ARM Technology Solution Centre
Ryan Mallon 5 Amuri Park, 404 Barbadoes St
ryan@bluewatersys.com PO Box 13 889, Christchurch 8013
http://www.bluewatersys.com New Zealand
Phone: +64 3 3779127 Freecall: Australia 1800 148 751
Fax: +64 3 3779135 USA 1800 261 2934
--