Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: NetRelais TCP_Client_Example TCP_Server_Example UDP_Server_Example ... more
Revision 9:7ac7c29fea3d, committed 2014-11-15
- Comitter:
- NegativeBlack
- Date:
- Sat Nov 15 21:35:31 2014 +0000
- Parent:
- 8:cdee0f2b6ff0
- Commit message:
- Fixed type warnings in address::formString().
Changed in this revision
ip/address.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/ip/address.cpp Thu Sep 27 09:31:40 2012 +0000 +++ b/ip/address.cpp Sat Nov 15 21:35:31 2014 +0000 @@ -71,7 +71,7 @@ Address::fromString(const std::string &address) { // Decode the ASCI string into integer values. - int result = std::sscanf(address.c_str(), "%3u.%3u.%3u.%3u", + int result = std::sscanf(address.c_str(), "%3hhu.%3hhu.%3hhu.%3hhu", &this->_address[0], &this->_address[1], &this->_address[2],