1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
From: Robert Luberda <robert@debian.org>
Date: Mon, 7 Mar 2011 22:23:56 +0100
Subject: 0021 Fix gcc warnings
Fix some gcc warnings.
---
correct.c | 2 +-
languages/english/msgs.h | 8 ++++----
tree.c | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/correct.c b/correct.c
index 9768c26..16e00d3 100644
--- a/correct.c
+++ b/correct.c
@@ -828,7 +828,7 @@ static void inserttoken (buf, start, tok, curchar, oktochange)
for (p = start; p != *curchar; p++)
(void) putc (*p, logfile);
(void) putc (' ', logfile);
- (void) fputs (tok, logfile);
+ (void) fputs ((char*) tok, logfile);
(void) putc ('\n', logfile);
(void) fflush (logfile);
}
diff --git a/languages/english/msgs.h b/languages/english/msgs.h
index 6c3b01b..5bb1039 100644
--- a/languages/english/msgs.h
+++ b/languages/english/msgs.h
@@ -185,10 +185,10 @@
#define CORR_C_HELP_4 "next to each one. You have the option of replacing the word%s\n"
#define CORR_C_HELP_5 "completely, or choosing one of the suggested words.%s\n"
/* You may add HELP_6 through HELP_9 if your language needs more lines */
-#define CORR_C_HELP_6 ""
-#define CORR_C_HELP_7 ""
-#define CORR_C_HELP_8 ""
-#define CORR_C_HELP_9 ""
+#define CORR_C_HELP_6 "%s"
+#define CORR_C_HELP_7 "%s"
+#define CORR_C_HELP_8 "%s"
+#define CORR_C_HELP_9 "%s"
#define CORR_C_HELP_COMMANDS "%s\nCommands are:%s\n%s\n"
#define CORR_C_HELP_R_CMD "R Replace the misspelled word completely.%s\n"
#define CORR_C_HELP_BLANK "Space Accept the word this time only.%s\n"
diff --git a/tree.c b/tree.c
index 05a6918..229ae16 100644
--- a/tree.c
+++ b/tree.c
@@ -351,7 +351,7 @@ void treeinsert (word, wordlen, keep)
struct dent * oldhtab;
unsigned int oldhsize;
ichar_t nword[INPUTWORDLEN + MAXAFFIXLEN];
- int isvariant;
+ MASKTYPE isvariant;
/*
* Expand hash table when it is MAXPCT % full.
|