[Commit] xcb/lib/XCB macros-xcb.m4,1.14,1.15
Jamey Sharp
commit at keithp.com
Thu Oct 23 13:11:21 PDT 2003
Committed by: jamey
Update of /local/src/CVS/xcb/lib/XCB
In directory home.keithp.com:/tmp/cvs-serv24604/lib/XCB
Modified Files:
macros-xcb.m4
Log Message:
Cast pointers to caddr_t when assigning to struct iovec iov_base.
Index: macros-xcb.m4
===================================================================
RCS file: /local/src/CVS/xcb/lib/XCB/macros-xcb.m4,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- macros-xcb.m4 11 Oct 2003 08:45:05 -0000 1.14
+++ macros-xcb.m4 23 Oct 2003 20:11:18 -0000 1.15
@@ -84,7 +84,7 @@
dnl request.
dnl LISTPARAM(element type, list name, length expression)
define(`LISTPARAM', `PUSHDIV(PARMDIV), const `$1' *`$2'divert(LISTDIV)
-TAB()parts[PARTQTY].iov_base = (`$1' *) `$2';
+TAB()parts[PARTQTY].iov_base = (caddr_t) `$2';
TAB()parts[PARTQTY].iov_len = (`$3') * sizeof(`$1');
TAB()out->length += (parts[PARTQTY].iov_len + 3) >> 2;
POPDIV()define(`PARTQTY', eval(1+PARTQTY))')
More information about the Commit
mailing list