diff options
Diffstat (limited to 'ace/TLI.cpp')
-rw-r--r-- | ace/TLI.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ace/TLI.cpp b/ace/TLI.cpp index 63a036c68f6..9e60c947e0d 100644 --- a/ace/TLI.cpp +++ b/ace/TLI.cpp @@ -129,7 +129,7 @@ ACE_TLI::set_option (int level, int option, void *optval, int optlen) struct t_optmgmt req, ret; ACE_NEW_RETURN (req.opt.buf, char[sizeof (struct t_opthdr) + optlen], -1); # if (_XOPEN_SOURCE - 0 >= 500) - auto_ptr<void> req_opt_buf_p (req.opt.buf); + auto_ptr<char> req_opt_buf_p (ACE_reinterpret_cast (char*, req.opt.buf)); # else ACE_Auto_Array_Ptr<char> req_opt_buf_p (req.opt.buf); # endif /* XPG5 vs XPG4 */ @@ -137,7 +137,7 @@ ACE_TLI::set_option (int level, int option, void *optval, int optlen) ACE_reinterpret_cast (struct t_opthdr *, req.opt.buf); ACE_NEW_RETURN (ret.opt.buf, char[sizeof (struct t_opthdr) + optlen], -1); # if (_XOPEN_SOURCE - 0 >= 500) - auto_ptr<void> ret_opt_buf_p (ret.opt.buf); + auto_ptr<char> ret_opt_buf_p (ACE_reinterpret_cast (char*, ret.opt.buf)); # else ACE_Auto_Array_Ptr<char> ret_opt_buf_p (ret.opt.buf); # endif /* XPG5 vs XPG4 */ @@ -194,7 +194,7 @@ ACE_TLI::get_option (int level, int option, void *optval, int &optlen) struct t_optmgmt req, ret; ACE_NEW_RETURN (req.opt.buf, char[sizeof (struct t_opthdr)], -1); # if (_XOPEN_SOURCE - 0 >= 500) - auto_ptr<void> req_opt_buf_p (req.opt.buf); + auto_ptr<char> req_opt_buf_p (ACE_reinterpret_cast (char*, req.opt.buf)); # else ACE_Auto_Array_Ptr<char> req_opt_buf_p (req.opt.buf); # endif /* XPG5 vs XPG4 */ @@ -202,7 +202,7 @@ ACE_TLI::get_option (int level, int option, void *optval, int &optlen) ACE_reinterpret_cast (struct t_opthdr *, req.opt.buf); ACE_NEW_RETURN (ret.opt.buf, char[sizeof (struct t_opthdr) + optlen], -1); # if (_XOPEN_SOURCE - 0 >= 500) - auto_ptr<void> ret_opt_buf_p (ret.opt.buf); + auto_ptr<char> ret_opt_buf_p (ACE_reinterpret_cast (char*, ret.opt.buf)); # else ACE_Auto_Array_Ptr<char> ret_opt_buf_p (ret.opt.buf); # endif /* XPG5 vs XPG4 */ |