diff options
author | shankar | 2010-04-08 07:10:11 +0000 |
---|---|---|
committer | shankar | 2010-04-08 07:10:11 +0000 |
commit | 06521f09fe525d21913599789d25ebf1a5ffce13 (patch) | |
tree | a8857955f4187f207d7a4dcdec7f0662c3124ee3 /tools/tcpmon/src | |
parent | af99ae8bc38e960b31907e5d642c67d15a3ea8c9 (diff) | |
download | axis2c-06521f09fe525d21913599789d25ebf1a5ffce13.tar.gz axis2c-06521f09fe525d21913599789d25ebf1a5ffce13.tar.bz2 |
Fixing 64bit compilation issue
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@931797 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tools/tcpmon/src')
-rw-r--r-- | tools/tcpmon/src/tcpmon.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/tcpmon/src/tcpmon.c b/tools/tcpmon/src/tcpmon.c index cb4afa6..31157e8 100644 --- a/tools/tcpmon/src/tcpmon.c +++ b/tools/tcpmon/src/tcpmon.c @@ -578,7 +578,7 @@ resend_request( int end_reached = 0; size_t rounds = 0; - offset = (int)strlen(search); + offset = strlen(search); tmp3 = buffer; if (read_len >= SIZE) { @@ -593,15 +593,15 @@ resend_request( } while (loop_state) { - int temp_len = 0; + size_t temp_len = 0; tmp1 = strstr(tmp3, search); - temp_len = (int)strlen(tmp3) + 1; + temp_len = strlen(tmp3) + 1; /* loop below is for mtom cases */ while (!tmp1 && (read_len - rounds > temp_len)) { - tmp3 += (int)strlen(tmp3) + 1; + tmp3 += strlen(tmp3) + 1; tmp1 = strstr(tmp3, search); - temp_len += (int)strlen(tmp3) + 1; + temp_len += strlen(tmp3) + 1; } if (!tmp1) { @@ -610,7 +610,7 @@ resend_request( break; } memmove(buffer, buffer + (SIZE - 1 - offset), offset); - read_len = (int)fread(buffer + offset, sizeof(char), + read_len = fread(buffer + offset, sizeof(char), SIZE - 1 - offset, file) + offset; break; } @@ -619,7 +619,7 @@ resend_request( rounds = tmp1 - tmp3 + offset + 36; tmp3 = tmp1 + offset + 36; } - if (read_len - offset - 36 < (int)(tmp1 - buffer)) + if (read_len - offset - 36 < (size_t)(tmp1 - buffer)) { if (end_reached) { @@ -627,7 +627,7 @@ resend_request( } offset += 36; memmove(buffer, buffer + (SIZE - 1 - offset), offset); - read_len = (int)fread(buffer + offset, sizeof(char), + read_len = fread(buffer + offset, sizeof(char), SIZE - 1 - offset, file) + offset; break; } @@ -654,7 +654,7 @@ resend_request( end_reached = 1; tmp2 += 36; offset = strlen(header_str); - if (read_len - offset < (int)(tmp2 - buffer)) + if (read_len - offset < (size_t)(tmp2 - buffer)) { seek_len = tmp2 - buffer + offset - read_len; if (seek_len > 0) @@ -665,7 +665,7 @@ resend_request( } else { - seek_len = read_len - (int)(tmp2 - buffer) - offset; + seek_len = read_len - (size_t)(tmp2 - buffer) - offset; } request_buffer = AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) * (48 * 1024 + 1)); |