From 3a8a24deb3c09ba732ed9b001edd1613f7c2dbc3 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Wed, 26 Jun 2019 17:01:43 -0700 Subject: [PATCH] vxworks fix --- src/remote/codec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote/codec.cpp b/src/remote/codec.cpp index cfc0809..0c28ff5 100644 --- a/src/remote/codec.cpp +++ b/src/remote/codec.cpp @@ -1187,7 +1187,7 @@ void BlockingTCPTransportCodec::setRxTimeout(bool ena) timo.tv_usec = (timeout-timo.tv_sec)*1e6; #endif - int ret = setsockopt(_channel, SOL_SOCKET, SO_RCVTIMEO, (const char*)&timo, sizeof(timo)); + int ret = setsockopt(_channel, SOL_SOCKET, SO_RCVTIMEO, (char*)&timo, sizeof(timo)); if(ret==-1) { int err = SOCKERRNO; static int lasterr;