Review: changed ntohs to htons

This commit is contained in:
Waldemar Porscha 2022-10-17 10:19:58 +02:00
parent 48b92797ac
commit f9f9914130

View File

@ -38,7 +38,7 @@ uint16_t AddressTableObject::getTsap(uint16_t addr)
{
uint16_t size = entryCount();
#ifdef USE_BINSEARCH
addr = ntohs(addr);
addr = htons(addr);
uint16_t low,high,i;
low = 1;