summaryrefslogtreecommitdiff
path: root/apps/JAWS/server/IO.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/JAWS/server/IO.cpp')
-rw-r--r--apps/JAWS/server/IO.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/JAWS/server/IO.cpp b/apps/JAWS/server/IO.cpp
index 90e743642a5..d445d96fee1 100644
--- a/apps/JAWS/server/IO.cpp
+++ b/apps/JAWS/server/IO.cpp
@@ -125,19 +125,19 @@ JAWS_Synch_IO::transmit_file (const char *filename,
int iovcnt = 0;
if (header_size > 0)
{
- iov[iovcnt].iov_base = (char*)header;
+ iov[iovcnt].iov_base = ACE_const_cast(char*, header);
iov[iovcnt].iov_len = header_size;
iovcnt++;
}
if (handle.size () > 0)
{
- iov[iovcnt].iov_base = handle.address ();
+ iov[iovcnt].iov_base = ACE_reinterpret_cast(char*,handle.address ());
iov[iovcnt].iov_len = handle.size ();
iovcnt++;
}
if (trailer_size > 0)
{
- iov[iovcnt].iov_base = (char*)trailer;
+ iov[iovcnt].iov_base = ACE_const_cast(char*, trailer);
iov[iovcnt].iov_len = trailer_size;
iovcnt++;
}