1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-17 22:23:10 +03:00

Changing from long to ssize_t (int) for write(), print(), println() return.

This commit is contained in:
David A. Mellis
2011-08-26 14:20:41 -04:00
parent 3f0b7f21c2
commit 929597375b
23 changed files with 123 additions and 121 deletions

View File

@ -42,9 +42,9 @@ bool IPAddress::operator==(const uint8_t* addr)
return memcmp(addr, _address, sizeof(_address)) == 0;
}
long IPAddress::printTo(Print& p) const
ssize_t IPAddress::printTo(Print& p) const
{
long n = 0, t;
ssize_t n = 0, t;
for (int i =0; i < 3; i++)
{
if ((t = p.print(_address[i], DEC)) > 0) n += t;