summaryrefslogtreecommitdiff
path: root/tools/ivyprobe.c
diff options
context:
space:
mode:
authorbustico2008-05-19 15:31:30 +0000
committerbustico2008-05-19 15:31:30 +0000
commit09f82d4e1e6dd1672b272c314c42d5cf30c91ea8 (patch)
treea25557d3aad5edc2641f98ea434e0b676f6b6872 /tools/ivyprobe.c
parent7cd590600a7ff3dd8defc3d639fd3e87f1973015 (diff)
downloadivy-c-09f82d4e1e6dd1672b272c314c42d5cf30c91ea8.zip
ivy-c-09f82d4e1e6dd1672b272c314c42d5cf30c91ea8.tar.gz
ivy-c-09f82d4e1e6dd1672b272c314c42d5cf30c91ea8.tar.bz2
ivy-c-09f82d4e1e6dd1672b272c314c42d5cf30c91ea8.tar.xz
* make the lib and api more robust by adding const where they should be
* compile with -Wall and eliminate remaining warnings
Diffstat (limited to 'tools/ivyprobe.c')
-rw-r--r--tools/ivyprobe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/ivyprobe.c b/tools/ivyprobe.c
index ed16455..a70d1bb 100644
--- a/tools/ivyprobe.c
+++ b/tools/ivyprobe.c
@@ -147,14 +147,14 @@ void HandleStdin (Channel channel, HANDLE fd, void *data)
arg = strtok (NULL, "'");
Chop(arg);
if (arg) {
- IvyBinding bind;
+ IvyBinding binding;
const char *errbuf;
int erroffset;
- bind = IvyBindingCompile(arg, & erroffset, & errbuf);
- if (bind==NULL) {
+ binding = IvyBindingCompile(arg, & erroffset, & errbuf);
+ if (binding==NULL) {
printf("Error compiling '%s', %s, not bound\n", arg, errbuf);
} else {
- IvyBindingFree( bind );
+ IvyBindingFree( binding );
IvyBindMsg (Callback, NULL, arg);
}
}
@@ -249,7 +249,7 @@ void ApplicationCallback (IvyClientPtr app, void *user_data, IvyApplicationEvent
break;
}
}
-void IvyPrintBindCallback( IvyClientPtr app, void *user_data, int id, char* regexp, IvyBindEvent event)
+void IvyPrintBindCallback( IvyClientPtr app, void *user_data, int id, const char* regexp, IvyBindEvent event)
{
switch ( event ) {
case IvyAddBind: