Skip to content

Commit

Permalink
[core] Fixed unused vars in CChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Sep 13, 2019
1 parent 8a5d75d commit b69733c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions srtcore/channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ void CChannel::setIpToS(int tos)

#endif

int CChannel::ioctlQuery(int type) const
int CChannel::ioctlQuery(int SRT_ATR_UNUSED type) const
{
#ifdef unix
int value = 0;
Expand All @@ -391,14 +391,15 @@ int CChannel::ioctlQuery(int type) const
return -1;
}

int CChannel::sockoptQuery(int level, int option) const
int CChannel::sockoptQuery(int SRT_ATR_UNUSED level, int SRT_ATR_UNUSED option) const
{
#ifdef unix
int value = 0;
socklen_t len = sizeof (int);
int res = ::getsockopt(m_iSocket, level, option, &value, &len);
if ( res != -1 )
return value;
return -1
#endif
return -1;
}
Expand Down

0 comments on commit b69733c

Please sign in to comment.