mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Use string objects instead of C strings
for name arguments to encoding methods. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@796 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a11f420b91
commit
07b43d0e5d
14 changed files with 41 additions and 41 deletions
|
@ -387,7 +387,7 @@ or
|
|||
{
|
||||
[aCoder encodeValueOfObjCType:@encode(typeof(sockPort.sin_port))
|
||||
at:&sockPort.sin_port
|
||||
withName:"socket number"];
|
||||
withName:@"socket number"];
|
||||
if (![self isSoft])
|
||||
{
|
||||
struct hostent *hp;
|
||||
|
@ -400,13 +400,13 @@ or
|
|||
bcopy(hp->h_addr, &sp.sin_addr, hp->h_length);
|
||||
[aCoder encodeValueOfObjCType:@encode(typeof(sp.sin_addr.s_addr))
|
||||
at:&sp.sin_addr.s_addr
|
||||
withName:"inet address"];
|
||||
withName:@"inet address"];
|
||||
}
|
||||
else
|
||||
{
|
||||
[aCoder encodeValueOfObjCType:@encode(typeof(sockPort.sin_addr.s_addr))
|
||||
at:&sockPort.sin_addr.s_addr
|
||||
withName:"inet address"];
|
||||
withName:@"inet address"];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue