Skip to content

Commit 79cda86

Browse files
committed
Fix build warnings / typos
1 parent fe80caa commit 79cda86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/IPAddress.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ IPAddress& IPAddress::operator=(uint32_t address)
238238
bool IPAddress::operator==(const IPAddress& addr) const {
239239
return (addr._type == _type)
240240
&& (memcmp(addr._address.bytes, _address.bytes, sizeof(_address.bytes)) == 0);
241-
};
241+
}
242242

243243
bool IPAddress::operator==(const uint8_t* addr) const
244244
{
@@ -252,14 +252,14 @@ uint8_t IPAddress::operator[](int index) const {
252252
return _address.bytes[IPADDRESS_V4_BYTES_INDEX + index];
253253
}
254254
return _address.bytes[index];
255-
};
255+
}
256256

257257
uint8_t& IPAddress::operator[](int index) {
258258
if (_type == IPv4) {
259259
return _address.bytes[IPADDRESS_V4_BYTES_INDEX + index];
260260
}
261261
return _address.bytes[index];
262-
};
262+
}
263263

264264
size_t IPAddress::printTo(Print& p) const
265265
{

0 commit comments

Comments
 (0)