aboutsummaryrefslogtreecommitdiffstats
path: root/src/data_snk.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-07-23 15:44:04 +0000
committerlloyd <[email protected]>2007-07-23 15:44:04 +0000
commite2f1f734277146d817ab284dea21e4013cb5b937 (patch)
tree21ad6ee775e36aa7fb24a504077200c22b1f15b8 /src/data_snk.cpp
parent211c4929ae92106794984d872a0cae1a873baa29 (diff)
Avoid C-style casts (as detected by GCC's -Wold-style-cast) and instead use
static_cast or reinterpret_cast, as needed.
Diffstat (limited to 'src/data_snk.cpp')
-rw-r--r--src/data_snk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data_snk.cpp b/src/data_snk.cpp
index 7f2080723..a76fbfa09 100644
--- a/src/data_snk.cpp
+++ b/src/data_snk.cpp
@@ -13,7 +13,7 @@ namespace Botan {
*************************************************/
void DataSink_Stream::write(const byte out[], u32bit length)
{
- sink->write((const char*)out, length);
+ sink->write(reinterpret_cast<const char*>(out), length);
if(!sink->good())
throw Stream_IO_Error("DataSink_Stream: Failure writing to " + fsname);
}