Use String* instead of char*.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@124 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1995-03-12 22:54:33 +00:00
parent 6818111a6f
commit 45699fdcf1
2 changed files with 7 additions and 3 deletions

View file

@ -3,6 +3,7 @@
#include <objects/Connection.h>
#include <objects/Proxy.h>
#include <objects/BinaryCoder.h>
#include <objects/String.h>
#include <assert.h>
#include "server.h"
@ -36,9 +37,11 @@ int main(int argc, char *argv[])
#endif
if (argc > 1)
p = [Connection rootProxyAtName:"test2server" onHost:argv[1]];
p = [Connection rootProxyAtName:@"test2server"
onHost:[String stringWithCString:argv[1]]];
else
p = [Connection rootProxyAtName:"test2server" onHost:""];
p = [Connection rootProxyAtName:@"test2server"
onHost:nil];
c = [p connectionForProxy];
type = [c _typeForSelector:sel_get_any_uid("name")

View file

@ -4,6 +4,7 @@
#include <objects/Connection.h>
#include <objc/List.h>
#include <objects/BinaryCoder.h>
#include <objects/String.h>
#include "server.h"
@implementation Server
@ -206,7 +207,7 @@ int main()
#if NeXT_runtime
[Proxy setProtocolForProxies:@protocol(AllProxies)];
#endif
c = [Connection newRegisteringAtName:"test2server" withRootObject:l];
c = [Connection newRegisteringAtName:@"test2server" withRootObject:l];
[c registerForInvalidationNotification:l];
[c setDelegate:l];