1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +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

@ -67,19 +67,19 @@ Client Server::available()
return Client(MAX_SOCK_NUM);
}
long Server::write(uint8_t b)
ssize_t Server::write(uint8_t b)
{
write(&b, 1);
}
long Server::write(const char *str)
ssize_t Server::write(const char *str)
{
write((const uint8_t *)str, strlen(str));
}
long Server::write(const uint8_t *buffer, size_t size)
ssize_t Server::write(const uint8_t *buffer, size_t size)
{
long n = 0;
ssize_t n = 0;
accept();