aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bufferstore.cc
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2001-02-04 04:23:06 +0000
committerFritz Elfert <felfert@to.com>2001-02-04 04:23:06 +0000
commita7e4250b20fa5012942c4fe05ee0c7f701c5799f (patch)
tree087ef59c3c88713aa8c7b3150a2ae114c04a929e /lib/bufferstore.cc
parent1664530e8f0e1ac6e762a1c79629fcec86f68724 (diff)
downloadplptools-a7e4250b20fa5012942c4fe05ee0c7f701c5799f.tar.gz
plptools-a7e4250b20fa5012942c4fe05ee0c7f701c5799f.tar.bz2
plptools-a7e4250b20fa5012942c4fe05ee0c7f701c5799f.zip
Cleaned up ppsocket.
More 64bit-related stuff.
Diffstat (limited to 'lib/bufferstore.cc')
-rw-r--r--lib/bufferstore.cc4
1 files changed, 2 insertions, 2 deletions
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) +