1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Clean up some warnings, and make the CRT ones more relevant

This commit is contained in:
2014-03-16 14:35:15 -07:00
parent ccdcd55a6a
commit a58e9c643c
5 changed files with 9 additions and 8 deletions

View File

@ -273,11 +273,12 @@ void AsyncAddressLookupName (
// Get name/port
char* ansiName = strdup(name);
if (char* portStr = StrChr(ansiName, ':')) {
if (unsigned newPort = StrToUnsigned(portStr + 1, nil, 10))
if (char* portStr = strchr(ansiName, ':')) {
if (unsigned long newPort = strtoul(portStr + 1, nullptr, 10))
port = newPort;
*portStr = 0;
}
free(ansiName);
// Initialize lookup
Lookup * lookup = new Lookup;