summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2011-06-23 23:56:00 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-06-24 14:44:07 +0200
commit55718c7aa8503e1144f6d5c7e0e6fd3e7b17ed8f (patch)
tree5abc362ee62802ab020f009d25fb0a77b4dfae8f
parent7fd56e1b76c93f8b948b4ad4ce84e203bb465ee3 (diff)
downloadmxs-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.cpp2
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");
}