Remove unused hton16.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/qt-trunk@11080 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
3d256c8b39
commit
7cfcfc2f82
|
@ -298,14 +298,6 @@ static BOOL NET_fillBuffer(NETBUFSOCKET* bs, SocketSet* socket_set)
|
|||
return false;
|
||||
}
|
||||
|
||||
static uint16_t hton16(uint16_t h)
|
||||
{
|
||||
uint8_t n[2] = {h>>8, h};
|
||||
uint16_t n_;
|
||||
memcpy(&n_, n, 2);
|
||||
return n_;
|
||||
}
|
||||
|
||||
static uint16_t ntoh16(uint16_t n_)
|
||||
{
|
||||
uint8_t n[2];
|
||||
|
|
Loading…
Reference in New Issue