diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-03-29 08:30:35 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-03-29 08:30:35 +0000 |
commit | 23ce054e24a3a7d7bd0ce69bfb5ce5709ddbc544 (patch) | |
tree | 05eba176716849d6fae3b067d016a7d0083d81f4 /cpp | |
parent | new IceSSL/C++ plugin (diff) | |
download | ice-23ce054e24a3a7d7bd0ce69bfb5ce5709ddbc544.tar.bz2 ice-23ce054e24a3a7d7bd0ce69bfb5ce5709ddbc544.tar.xz ice-23ce054e24a3a7d7bd0ce69bfb5ce5709ddbc544.zip |
Header fixes, warning fixes.
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/include/IceUtil/Handle.h | 4 | ||||
-rw-r--r-- | cpp/src/IceUtil/Random.cpp | 2 | ||||
-rw-r--r-- | cpp/src/IceUtil/UUID.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/cpp/include/IceUtil/Handle.h b/cpp/include/IceUtil/Handle.h index 8ea9b259f9b..b1cca8ad05b 100644 --- a/cpp/include/IceUtil/Handle.h +++ b/cpp/include/IceUtil/Handle.h @@ -80,11 +80,11 @@ public: private: - void throwNullHandleException(char *, int) const; + void throwNullHandleException(const char *, int) const; }; template<typename T> void -HandleBase<T>::throwNullHandleException(char* file, int line) const +HandleBase<T>::throwNullHandleException(const char* file, int line) const { throw NullHandleException(file, line); } diff --git a/cpp/src/IceUtil/Random.cpp b/cpp/src/IceUtil/Random.cpp index d3e217a2fc1..79b6eb32103 100644 --- a/cpp/src/IceUtil/Random.cpp +++ b/cpp/src/IceUtil/Random.cpp @@ -13,8 +13,6 @@ # include <Wincrypt.h> #else # include <IceUtil/StaticMutex.h> -# include <sys/types.h> -# include <sys/stat.h> # include <fcntl.h> # include <unistd.h> #endif diff --git a/cpp/src/IceUtil/UUID.cpp b/cpp/src/IceUtil/UUID.cpp index 77f01bb8bfd..0f1c9a905b8 100644 --- a/cpp/src/IceUtil/UUID.cpp +++ b/cpp/src/IceUtil/UUID.cpp @@ -18,6 +18,8 @@ # include <rpc.h> #else # include <IceUtil/Random.h> +# include <sys/types.h> +# include <unistd.h> #endif using namespace std; |