summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/SessionImpl.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2008-07-29 20:26:46 +0000
committerAndrew Stitcher <astitcher@apache.org>2008-07-29 20:26:46 +0000
commit5c49bab054b72ee8ce73b376786f48bbaacc1a8b (patch)
tree1b30782fa08eb395f4c284a68721922e8ab3787f /cpp/src/qpid/client/SessionImpl.cpp
parent14744b26e039cf25368872a244e575ee04d0d30f (diff)
downloadqpid-python-5c49bab054b72ee8ce73b376786f48bbaacc1a8b.tar.gz
QPID-1198 (Partial): replace all uses of u_intX_t with uintX_t
Patches from Manuel Teira. The u_int* versions are not available in the Sun header files. In any case using only uint* is more consistent git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@680828 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/SessionImpl.cpp')
-rw-r--r--cpp/src/qpid/client/SessionImpl.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/qpid/client/SessionImpl.cpp b/cpp/src/qpid/client/SessionImpl.cpp
index 43ae158afe..2075ed04f3 100644
--- a/cpp/src/qpid/client/SessionImpl.cpp
+++ b/cpp/src/qpid/client/SessionImpl.cpp
@@ -301,22 +301,22 @@ void SessionImpl::sendContent(const MethodContent& content)
{
AMQFrame header(content.getHeader());
header.setFirstSegment(false);
- u_int64_t data_length = content.getData().length();
+ uint64_t data_length = content.getData().length();
if(data_length > 0){
header.setLastSegment(false);
handleOut(header);
/*Note: end of frame marker included in overhead but not in size*/
- const u_int32_t frag_size = maxFrameSize - AMQFrame::frameOverhead();
+ const uint32_t frag_size = maxFrameSize - AMQFrame::frameOverhead();
if(data_length < frag_size){
AMQFrame frame(in_place<AMQContentBody>(content.getData()));
frame.setFirstSegment(false);
handleOut(frame);
}else{
- u_int32_t offset = 0;
- u_int32_t remaining = data_length - offset;
+ uint32_t offset = 0;
+ uint32_t remaining = data_length - offset;
while (remaining > 0) {
- u_int32_t length = remaining > frag_size ? frag_size : remaining;
+ uint32_t length = remaining > frag_size ? frag_size : remaining;
string frag(content.getData().substr(offset, length));
AMQFrame frame(in_place<AMQContentBody>(frag));
frame.setFirstSegment(false);