summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDom Lachowicz <domlachowicz@gmail.com>2007-11-28 15:42:42 +0000
committerDom Lachowicz <domlachowicz@gmail.com>2007-11-28 15:42:42 +0000
commit1e49a783ae9900a59b1b866aedc7c7144da7d915 (patch)
tree3ec8a794587619c05f7f69fe388ce32de7eb4ddf
parent0907f12f2ddeaae1279a90bd344c9dd2a170f2dd (diff)
downloadenchant-1e49a783ae9900a59b1b866aedc7c7144da7d915.tar.gz
include gstdio in order to silence some build warnings
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22350 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r--src/enchant.c9
-rw-r--r--src/pwl.c3
2 files changed, 7 insertions, 5 deletions
diff --git a/src/enchant.c b/src/enchant.c
index e57a036..bbcdc65 100644
--- a/src/enchant.c
+++ b/src/enchant.c
@@ -34,6 +34,7 @@
#include <glib.h>
#include <gmodule.h>
+#include <glib/gstdio.h>
#include <locale.h>
#include "enchant.h"
@@ -791,13 +792,13 @@ enchant_dict_suggest (EnchantDict * dict, const char *const word,
/* Copy over suggestions from dict, if good */
n_suggs = enchant_dict_merge_suggestions(dict,
- suggs, 0,
- dict_suggs, n_dict_suggs);
+ suggs, 0,
+ dict_suggs, n_dict_suggs);
/* Copy over suggestions from pwl, if good and no dupes */
n_suggs = enchant_dict_merge_suggestions(dict,
- suggs, n_suggs,
- pwl_suggs, n_pwl_suggs);
+ suggs, n_suggs,
+ pwl_suggs, n_pwl_suggs);
}
else
{
diff --git a/src/pwl.c b/src/pwl.c
index 73bfbfc..cd0f2b8 100644
--- a/src/pwl.c
+++ b/src/pwl.c
@@ -64,6 +64,7 @@
#endif
#include <glib.h>
+#include <glib/gstdio.h>
#include "pwl.h"
@@ -1042,7 +1043,7 @@ static void enchant_trie_matcher_poppath(EnchantTrieMatcher* matcher,int num)
static int edit_dist(const char* utf8word1, const char* utf8word2)
{
gunichar * word1, * word2;
- int len1, len2, cost, i, j;
+ glong len1, len2, cost, i, j;
int v1, v2, v3;
int* table;