mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Use @""-style strings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@290 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6d6365e63c
commit
baba8f65d9
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
#include "second-client.h"
|
||||
#include <objects/String.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
@ -8,12 +9,12 @@ int main(int argc, char *argv[])
|
|||
char namebuf[16];
|
||||
|
||||
printf("Looking up server object on localhost with name `secondserver'\n");
|
||||
server = [Connection rootProxyAtName:"secondserver"];
|
||||
server = [Connection rootProxyAtName:@"secondserver"];
|
||||
printf("Found server.\n");
|
||||
|
||||
/* Create an AppellationObject */
|
||||
a1 = [[AppellationObject alloc] init];
|
||||
sprintf(namebuf, "%d", getpid());
|
||||
sprintf(namebuf, "%d", (int)getpid());
|
||||
[a1 setAppellation:namebuf];
|
||||
printf("This client has appellation %s\n", [a1 appellation]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue