X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fc-client.xsl;h=8a2d82e34c1d7abffcc633bf8c351e64171ac5fd;hb=75fead5b868a0dfdc9e6fd5ef0dd37eb71761312;hp=903895d78e23189bebd0c69559cc1b9b42e235d5;hpb=47ceed78612d48dcda62cc2686fc527d61abe38b;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/c-client.xsl b/src/c-client.xsl index 903895d..8a2d82e 100644 --- a/src/c-client.xsl +++ b/src/c-client.xsl @@ -62,19 +62,9 @@ authorization from the authors. - - - - - - - - - - + + + @@ -567,7 +557,7 @@ authorization from the authors. - + static const XCBProtocolRequest xcb_req = { @@ -586,7 +576,7 @@ authorization from the authors. }; - struct iovec xcb_parts[]; + struct iovec xcb_parts[]; xcb_ret; xcb_out; @@ -596,22 +586,30 @@ authorization from the authors. mode="assign" /> - xcb_parts[0].iov_base = &xcb_out; - xcb_parts[0].iov_len = sizeof(xcb_out); + xcb_parts[2].iov_base = (char *) &xcb_out; + xcb_parts[2].iov_len = sizeof(xcb_out); + xcb_parts[3].iov_base = 0; + xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_parts[].iov_base = (void *) ; - xcb_parts[].iov_len = * sizeof( ) ; + xcb_parts[].iov_base = 0; + xcb_parts[].iov_len = -xcb_parts[].iov_len & 3; - XCBSendRequest(c, &xcb_ret.sequence, xcb_parts, &xcb_req); + xcb_ret.sequence = XCBSendRequest(c, + XCB_REQUEST_CHECKED + 0 + , xcb_parts + 2, &xcb_req); return xcb_ret; @@ -703,7 +701,7 @@ authorization from the authors. /*[self::valueparam or self::list]" /> - + return ( *)