From 3531e91ef47da7cccb52242fb8113c4a7e93d079 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Fri, 28 Nov 2008 17:11:31 +0000 Subject: fixed datatypes (really using boost now) --- src/anyConfOptions.h | 2 +- src/datatypes.h | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/anyConfOptions.h b/src/anyConfOptions.h index 55dffa3..fdcec70 100644 --- a/src/anyConfOptions.h +++ b/src/anyConfOptions.h @@ -40,7 +40,7 @@ typedef struct { std::string net_addr; - uint16_t prefix_length; + u_int16_t prefix_length; } OptionRoute; typedef std::list RouteList; diff --git a/src/datatypes.h b/src/datatypes.h index ee6e80c..0fc9ae2 100644 --- a/src/datatypes.h +++ b/src/datatypes.h @@ -34,10 +34,14 @@ #include -typedef uint8_t u_int8_t; -typedef uint16_t u_int16_t; -typedef uint32_t u_int32_t; -typedef uint64_t u_int64_t; +typedef boost::uint8_t u_int8_t; +typedef boost::uint16_t u_int16_t; +typedef boost::uint32_t u_int32_t; +typedef boost::uint64_t u_int64_t; +typedef boost::int8_t int8_t; +typedef boost::int16_t int16_t; +typedef boost::int32_t int32_t; +typedef boost::int64_t int64_t; typedef u_int32_t window_size_t; -- cgit v1.2.3