mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Updates to reduce global namespace pollution. Plenty more remaining.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23795 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9d71af9cbf
commit
eae859d1c7
85 changed files with 1090 additions and 1277 deletions
|
@ -204,7 +204,7 @@ static NSMutableDictionary *_hostCache = nil;
|
|||
break;
|
||||
}
|
||||
|
||||
h_name = [NSString stringWithCString: entry->h_name];
|
||||
h_name = [NSString stringWithUTF8String: entry->h_name];
|
||||
[names addObject: h_name];
|
||||
|
||||
if (entry->h_aliases != 0)
|
||||
|
@ -212,7 +212,7 @@ static NSMutableDictionary *_hostCache = nil;
|
|||
i = 0;
|
||||
while ((ptr = entry->h_aliases[i++]) != 0)
|
||||
{
|
||||
[names addObject: [NSString stringWithCString: ptr]];
|
||||
[names addObject: [NSString stringWithUTF8String: ptr]];
|
||||
}
|
||||
}
|
||||
if (entry->h_addr_list != 0)
|
||||
|
@ -223,7 +223,7 @@ static NSMutableDictionary *_hostCache = nil;
|
|||
NSString *addr;
|
||||
|
||||
memcpy((void*)&in.s_addr, (const void*)ptr, entry->h_length);
|
||||
addr = [NSString stringWithCString: (char*)inet_ntoa(in)];
|
||||
addr = [NSString stringWithUTF8String: (char*)inet_ntoa(in)];
|
||||
[addresses addObject: addr];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue