From a7e4250b20fa5012942c4fe05ee0c7f701c5799f Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Sun, 4 Feb 2001 04:23:06 +0000 Subject: Cleaned up ppsocket. More 64bit-related stuff. --- lib/bufferstore.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/bufferstore.cc') diff --git a/lib/bufferstore.cc b/lib/bufferstore.cc index f2686dc..35bea26 100644 --- a/lib/bufferstore.cc +++ b/lib/bufferstore.cc @@ -84,11 +84,11 @@ unsigned char bufferStore::getByte(long pos) const { return buff[pos+start]; } -unsigned int bufferStore::getWord(long pos) const { +u_int16_t bufferStore::getWord(long pos) const { return buff[pos+start] + (buff[pos+start+1] << 8); } -unsigned int bufferStore::getDWord(long pos) const { +u_int32_t bufferStore::getDWord(long pos) const { return buff[pos+start] + (buff[pos+start+1] << 8) + (buff[pos+start+2] << 16) + -- cgit v1.2.3