| |
From: <m-a@us...> - 2003-04-25 10:17
|
Update of /cvsroot/bogofilter/bogofilter/src
In directory sc8-pr-cvs1:/tmp/cvs-serv21638
Modified Files:
collect.c main.c
Log Message:
Quench some compiler warnings.
Index: collect.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/collect.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- collect.c 19 Apr 2003 14:18:19 -0000 1.9
+++ collect.c 25 Apr 2003 10:17:35 -0000 1.10
@@ -57,9 +57,9 @@
if (token_type == BOGO_LEX_LINE)
{
- char *s = yylval->text+1;
+ char *s = (char *)(yylval->text+1);
char *f = strchr(s, '"');
- token = word_new(s, f-s);
+ token = word_new((unsigned char *)s, f-s);
}
w = wordhash_insert(wh, token, sizeof(wordprop_t), &wordprop_init);
@@ -73,7 +73,7 @@
if (token_type == BOGO_LEX_LINE)
{
- char *s = yylval->text+1;
+ char *s = (char *)yylval->text+1;
s = strchr(s, '"');
w->bad = atoi(s+2);
Index: main.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/main.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- main.c 22 Apr 2003 15:01:01 -0000 1.38
+++ main.c 25 Apr 2003 10:17:36 -0000 1.39
@@ -93,7 +93,7 @@
bool error = false;
double spamicity;
rc_t status;
- char *filename;
+ char *filename = NULL;
char buff[PATH_LEN+1];
while (!done) {
|
|