diff options
author | Jamey Sharp <jamey@minilop.net> | 2006-03-11 20:32:04 -0800 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2006-03-11 20:32:04 -0800 |
commit | 5cdc02e3441dc623e91ebc5d7f735565b83f8435 (patch) | |
tree | db6d750e0799966c3809a081e66f9072aee54e7d /src/xcb_conn.c | |
parent | 5b0ae3421dd373a8575b7a0d60989edfc056cf71 (diff) |
Portability fixes. Should help DragonFly and Solaris, and should not hurt anything else. Tested only on linux so far though.
Diffstat (limited to 'src/xcb_conn.c')
-rw-r--r-- | src/xcb_conn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xcb_conn.c b/src/xcb_conn.c index 5839ed8..2fed0ba 100644 --- a/src/xcb_conn.c +++ b/src/xcb_conn.c @@ -73,18 +73,18 @@ static int write_setup(XCBConnection *c, XCBAuthInfo *auth_info) parts[count].iov_len = sizeof(XCBConnSetupReq); parts[count++].iov_base = &out; parts[count].iov_len = XCB_PAD(sizeof(XCBConnSetupReq)); - parts[count++].iov_base = (caddr_t) pad; + parts[count++].iov_base = (char *) pad; if(auth_info) { parts[count].iov_len = out.authorization_protocol_name_len = auth_info->namelen; parts[count++].iov_base = auth_info->name; parts[count].iov_len = XCB_PAD(out.authorization_protocol_name_len); - parts[count++].iov_base = (caddr_t) pad; + parts[count++].iov_base = (char *) pad; parts[count].iov_len = out.authorization_protocol_data_len = auth_info->datalen; parts[count++].iov_base = auth_info->data; parts[count].iov_len = XCB_PAD(out.authorization_protocol_data_len); - parts[count++].iov_base = (caddr_t) pad; + parts[count++].iov_base = (char *) pad; } assert(count <= sizeof(parts) / sizeof(*parts)); |