From 2bcadbb42a6fb2f096c1fc0a4b957d64a5024ef6 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 11 Oct 2006 15:50:15 +0000 Subject: Turned up gcc warnings, fixed warnings in code, enabled -Werror. Note: #include "qpid_test_plugin.h" instead of Works around warning from a cppunit macro. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@462834 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/common/framing/inc/Buffer.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'cpp/common/framing/inc/Buffer.h') diff --git a/cpp/common/framing/inc/Buffer.h b/cpp/common/framing/inc/Buffer.h index e0532cc9d6..4d3d503b00 100644 --- a/cpp/common/framing/inc/Buffer.h +++ b/cpp/common/framing/inc/Buffer.h @@ -27,16 +27,16 @@ class FieldTable; class Buffer { - const int size; + const u_int32_t size; char* data; - int position; - int limit; - int r_position; - int r_limit; + u_int32_t position; + u_int32_t limit; + u_int32_t r_position; + u_int32_t r_limit; public: - Buffer(int size); + Buffer(u_int32_t size); ~Buffer(); void flip(); @@ -44,9 +44,9 @@ public: void compact(); void record(); void restore(); - int available(); + u_int32_t available(); char* start(); - void move(int bytes); + void move(u_int32_t bytes); void putOctet(u_int8_t i); void putShort(u_int16_t i); -- cgit v1.2.1