summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/ivyperf.c2
-rwxr-xr-xtools/ivytestready.c8
-rw-r--r--tools/ivythroughput.cpp2
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);