diff options
author | bustico | 2011-01-26 15:54:53 +0000 |
---|---|---|
committer | bustico | 2011-01-26 15:54:53 +0000 |
commit | 0cebd5d6540937019be80429679472a1b50741c2 (patch) | |
tree | 0421767e6f4d9d29849ff5bc4eff976474b47765 /tools/ivytestready.c | |
parent | 4d42efafcb4d2ffed6af12a1501f65beab3593aa (diff) | |
download | ivy-c-0cebd5d6540937019be80429679472a1b50741c2.zip ivy-c-0cebd5d6540937019be80429679472a1b50741c2.tar.gz ivy-c-0cebd5d6540937019be80429679472a1b50741c2.tar.bz2 ivy-c-0cebd5d6540937019be80429679472a1b50741c2.tar.xz |
fix some warning
Diffstat (limited to 'tools/ivytestready.c')
-rwxr-xr-x | tools/ivytestready.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/ivytestready.c b/tools/ivytestready.c index b3acd7b..0045bb2 100755 --- a/tools/ivytestready.c +++ b/tools/ivytestready.c @@ -45,28 +45,28 @@ char ready_bind[1000] = "^B ready"; void Ready (IvyClientPtr app, void *user_data, int argc, char *argv[]) { - char *name = IvyGetApplicationName( app ); + const char *name = IvyGetApplicationName( app ); int count = IvySendMsg ("are you there %s",name); printf("Application %s received '%s' from %s sent question 'are you there %s'= %d\n", me, ready_bind, name, name, count); } void Question (IvyClientPtr app, void *user_data, int argc, char *argv[]) { - char *name = IvyGetApplicationName( app ); + const char *name = IvyGetApplicationName( app ); int count = IvySendMsg ("yes i am %s",me); printf("Application %s Reply to %s are you there = %d\n", me, name, count); } void Reply (IvyClientPtr app, void *user_data, int argc, char *argv[]) { - char *name = IvyGetApplicationName( app ); + const char *name = IvyGetApplicationName( app ); printf("Application %s Reply to our question! %s\n", name, argv[0]); } void binCB( IvyClientPtr app, void *user_data, int id, const char* regexp, IvyBindEvent event ) { - char *app_name = IvyGetApplicationName( app ); + const char *app_name = IvyGetApplicationName( app ); switch ( event ) { case IvyAddBind: |