From 3a7cc66e3134b2a6000c5fb31e27ac05f88da244 Mon Sep 17 00:00:00 2001 From: Andrew McCallum Date: Sun, 12 Mar 1995 22:54:33 +0000 Subject: [PATCH] Use String* instead of char*. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@124 72102866-910b-0410-8b05-ffd578937521 --- Testing/client.m | 7 +++++-- Testing/server.m | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Testing/client.m b/Testing/client.m index 0165046bb..387a77a02 100644 --- a/Testing/client.m +++ b/Testing/client.m @@ -3,6 +3,7 @@ #include #include #include +#include #include #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") diff --git a/Testing/server.m b/Testing/server.m index a4159dfde..7408def96 100644 --- a/Testing/server.m +++ b/Testing/server.m @@ -4,6 +4,7 @@ #include #include #include +#include #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];