mirror of https://github.com/oxen-io/lokinet
remove the rest of gcc compiler warnings
This commit is contained in:
parent
53b4a94c75
commit
ebfe820b7a
|
@ -64,6 +64,7 @@
|
|||
"map": "cpp",
|
||||
"vector": "cpp",
|
||||
"new": "cpp",
|
||||
"shared_mutex": "cpp"
|
||||
"shared_mutex": "cpp",
|
||||
"complex": "cpp"
|
||||
}
|
||||
}
|
|
@ -127,12 +127,13 @@ extern "C"
|
|||
void
|
||||
code_domain(char *&buffer, const std::string &domain) throw()
|
||||
{
|
||||
int start(0), end; // indexes
|
||||
std::string::size_type start(0);
|
||||
std::string::size_type end; // indexes
|
||||
// llarp::LogInfo("domain [", domain, "]");
|
||||
while((end = domain.find('.', start)) != std::string::npos)
|
||||
{
|
||||
*buffer++ = end - start; // label length octet
|
||||
for(int i = start; i < end; i++)
|
||||
for(std::string::size_type i = start; i < end; i++)
|
||||
{
|
||||
*buffer++ = domain[i]; // label octets
|
||||
// llarp::LogInfo("Writing ", domain[i], " at ", i);
|
||||
|
|
Loading…
Reference in New Issue