making things 64-bit friendly

svn path=/trunk/boinc/; revision=1659
This commit is contained in:
Karl Chen 2003-07-10 18:49:52 +00:00
parent 47f0238407
commit f76e58c4d6
2 changed files with 4 additions and 3 deletions

View File

@ -264,7 +264,7 @@ int HTTP_OP::init_post(char* url, char* in, char* out) {
http_post_request_header(
request_header, hostname, port, proxy_buf, content_length
);
scope_messages.printf("HTTP_OP::init_post(): %x io_done %d\n", (unsigned int)this, io_done);
scope_messages.printf("HTTP_OP::init_post(): %p io_done %d\n", this, io_done);
return 0;
}
@ -426,7 +426,7 @@ bool HTTP_OP_SET::poll() {
case HTTP_STATE_REPLY_HEADER:
if (htp->io_ready) {
action = true;
scope_messages.printf("HTTP_OP_SET::poll(): got reply header; %x io_done %d\n", (unsigned int)htp, htp->io_done);
scope_messages.printf("HTTP_OP_SET::poll(): got reply header; %p io_done %d\n", htp, htp->io_done);
read_http_reply_header(htp->socket, htp->hrh);
// TODO: handle all kinds of redirects here

View File

@ -98,8 +98,9 @@ dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_HEADER_TIME
dnl TODO: use compiler to test these; there probably exists an autoconf macro already!
case "$target" in
*-linux-*)
*-linux-* | *-sun-*)
AC_DEFINE(GETSOCKOPT_SOCKLEN_T, 1, [getsockopt uses socklen_t])
;;
*sysv5OpenUNIX8*)