diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-06-23 23:56:00 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-06-24 14:44:07 +0200 |
commit | 55718c7aa8503e1144f6d5c7e0e6fd3e7b17ed8f (patch) | |
tree | 5abc362ee62802ab020f009d25fb0a77b4dfae8f | |
parent | 7fd56e1b76c93f8b948b4ad4ce84e203bb465ee3 (diff) | |
download | mxs-utils-55718c7aa8503e1144f6d5c7e0e6fd3e7b17ed8f.tar.gz mxs-utils-55718c7aa8503e1144f6d5c7e0e6fd3e7b17ed8f.tar.xz |
shut up signed/unsigned warning
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | common/Random.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/Random.cpp b/common/Random.cpp index e9785aa..0cc5588 100644 --- a/common/Random.cpp +++ b/common/Random.cpp @@ -75,7 +75,7 @@ void RandomNumberGenerator::generateBlock(uint8_t * output, unsigned count) throw std::runtime_error("CryptGenRandom"); } #else // WIN32 - if (read(m_fd, output, count) != count) + if (read(m_fd, output, count) != (ssize_t)count) { throw std::runtime_error("read /dev/urandom"); } |