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 | |
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
-rw-r--r-- | tools/ivyperf.c | 2 | ||||
-rwxr-xr-x | tools/ivytestready.c | 8 | ||||
-rw-r--r-- | tools/ivythroughput.cpp | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/tools/ivyperf.c b/tools/ivyperf.c index 50f42da..8683692 100644 --- a/tools/ivyperf.c +++ b/tools/ivyperf.c @@ -44,7 +44,7 @@ const char *mymessages[] = { "IvyPerf", "ping", "pong" }; static double origin = 0; int nbMsgReceive=0; int nbMsgEmit=0; -int nbMsg = 10; +long nbMsg = 10; double minRoundTrip=1e12; 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: diff --git a/tools/ivythroughput.cpp b/tools/ivythroughput.cpp index d99588e..7d6136f 100644 --- a/tools/ivythroughput.cpp +++ b/tools/ivythroughput.cpp @@ -665,7 +665,7 @@ void doNothingAndSuicideCB (TimerId id, void *user_data, unsigned long delta) printf ("."); long time = (long) user_data; time = ((time-2)/2) * 1000; - printf ("DBG> client hanging for %d milliseconds\n", time); + printf ("DBG> client hanging for %ld milliseconds\n", time); usleep (time * 1000); printf ("DBG> client suicide\n"); _exit(42); |