From 09f82d4e1e6dd1672b272c314c42d5cf30c91ea8 Mon Sep 17 00:00:00 2001 From: bustico Date: Mon, 19 May 2008 15:31:30 +0000 Subject: * make the lib and api more robust by adding const where they should be * compile with -Wall and eliminate remaining warnings --- tools/ivythroughput.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tools/ivythroughput.cpp') diff --git a/tools/ivythroughput.cpp b/tools/ivythroughput.cpp index 513e6eb..1803e66 100644 --- a/tools/ivythroughput.cpp +++ b/tools/ivythroughput.cpp @@ -86,8 +86,7 @@ bool getMessages (const char*fileName, ListOfString &messages, unsigned int numM bool getRegexps (const char*fileName, ListOfString ®exps, unsigned int numReg); double currentTime(); -void binCB( IvyClientPtr app, void *user_data, int id, char* regexp, IvyBindEvent event ) ; -void binCBR( IvyClientPtr app, void *user_data, int id, char* regexp, IvyBindEvent event ) ; +void binCB( IvyClientPtr app, void *user_data, int id, const char* regexp, IvyBindEvent event ) ; void congestCB ( IvyClientPtr app, void *user_data, IvyApplicationEvent event ) ; void stopCB (TimerId id, void *user_data, unsigned long delta); void sendAllMessageCB (TimerId id, void *user_data, unsigned long delta); @@ -442,7 +441,7 @@ double currentTime() # | |_) | | | | | | | | |____ | |_) | # |_.__/ |_| |_| |_| \_____| |____/ */ -void binCB( IvyClientPtr app, void *user_data, int id, char* regexp, IvyBindEvent event ) +void binCB( IvyClientPtr app, void *user_data, int id, const char* regexp, IvyBindEvent event ) { string appName = IvyGetApplicationName( app ); static MapBindByClnt bindByClnt; -- cgit v1.1