aboutsummaryrefslogtreecommitdiffstats
path: root/libibex/find.c
diff options
context:
space:
mode:
authorNotZed <NotZed@HelixCode.com>2000-08-10 04:34:49 +0800
committerChris Lahey <clahey@src.gnome.org>2000-08-10 04:34:49 +0800
commit26d49c2869cd934810c864b1de2a5150f1075122 (patch)
tree2599b9ce1dac1d2855b0e46f53c4a4b9016de672 /libibex/find.c
parentd294eacd6d865f868cc8580806777737ba468918 (diff)
downloadgsoc2013-evolution-26d49c2869cd934810c864b1de2a5150f1075122.tar
gsoc2013-evolution-26d49c2869cd934810c864b1de2a5150f1075122.tar.gz
gsoc2013-evolution-26d49c2869cd934810c864b1de2a5150f1075122.tar.bz2
gsoc2013-evolution-26d49c2869cd934810c864b1de2a5150f1075122.tar.lz
gsoc2013-evolution-26d49c2869cd934810c864b1de2a5150f1075122.tar.xz
gsoc2013-evolution-26d49c2869cd934810c864b1de2a5150f1075122.tar.zst
gsoc2013-evolution-26d49c2869cd934810c864b1de2a5150f1075122.zip
Fixed some warnings.
2000-05-11 NotZed <NotZed@HelixCode.com> * file.c, find.c: Fixed some warnings. svn path=/trunk/; revision=4667
Diffstat (limited to 'libibex/find.c')
-rw-r--r--libibex/find.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libibex/find.c b/libibex/find.c
index 1bb58917ac..6b9815f0c0 100644
--- a/libibex/find.c
+++ b/libibex/find.c
@@ -135,7 +135,7 @@ ibex_find_all (ibex *ib, GPtrArray *words)
else if (words->len == 1)
return ibex_find (ib, g_ptr_array_index (words, 0));
- work = g_tree_new (strcmp);
+ work = g_tree_new ((GCompareFunc) strcmp);
for (i = 0; i < words->len; i++) {
word = g_ptr_array_index (words, i);
wrefs = g_hash_table_lookup (ib->words, word);
@@ -182,17 +182,17 @@ ibex_dump_foo(char *key, GPtrArray *refs, void *data)
{
int i;
- printf("%s: ", key);
+ g_print("%s: ", key);
for (i=0;i<refs->len;i++) {
ibex_file *ibf = g_ptr_array_index (refs, i);
- printf("%c%s", ibf->index==-1?'-':' ', ibf->name);
+ g_print("%c%s", ibf->index==-1?'-':' ', ibf->name);
}
- printf("\n");
+ g_print("\n");
}
/* debug function to dump the tree, in key order */
void
ibex_dump_all (ibex *ib)
{
- g_hash_table_foreach(ib->words, ibex_dump_foo, 0);
+ g_hash_table_foreach(ib->words, (GHFunc) ibex_dump_foo, 0);
}