[cvs] bogofilter main.c,1.52.2.2,1.52.2.3 bogoutil.c,1.15,1.15.2.1
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2002-10-27 00:31:43
|
Update of /cvsroot/bogofilter/bogofilter In directory usw-pr-cvs1:/tmp/cvs-serv25220 Modified Files: Tag: bogofilter-0_7_6 main.c bogoutil.c Log Message: For arm/powerpc/s390 compatibility, return value of getopt() is now saved in an int variable (rather than one of type char). Index: main.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/main.c,v retrieving revision 1.52.2.2 retrieving revision 1.52.2.3 diff -C2 -d -r1.52.2.2 -r1.52.2.3 *** main.c 26 Oct 2002 20:14:32 -0000 1.52.2.2 --- main.c 27 Oct 2002 00:31:40 -0000 1.52.2.3 *************** *** 126,137 **** int process_args(int argc, char **argv) { ! int ch; ! int exitcode; ! int optind_save; optind_save=1; ! while ((ch = getopt(argc, argv, "d:ehlsnSNvVpugR::rx:")) != EOF) { ! switch(ch) { case 'd': --- 126,137 ---- int process_args(int argc, char **argv) { ! int option; ! int exitcode; ! int optind_save; optind_save=1; ! while ((option = getopt(argc, argv, "d:ehlsnSNvVpugR::rx:")) != EOF) { ! switch(option) { case 'd': Index: bogoutil.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/bogoutil.c,v retrieving revision 1.15 retrieving revision 1.15.2.1 diff -C2 -d -r1.15 -r1.15.2.1 *** bogoutil.c 24 Oct 2002 12:52:46 -0000 1.15 --- bogoutil.c 27 Oct 2002 00:31:40 -0000 1.15.2.1 *************** *** 359,369 **** typedef enum { NONE, DUMP = 1, LOAD = 2, WORD = 3, ROBX = 4 } cmd_t; ! int count = 0; char *db_file = NULL; - char ch; cmd_t flag = NONE; ! while ((ch = getopt(argc, argv, "d:l:w:R:hvVx:")) != -1) ! switch (ch) { case 'd': flag = DUMP; --- 359,369 ---- typedef enum { NONE, DUMP = 1, LOAD = 2, WORD = 3, ROBX = 4 } cmd_t; ! int count = 0; ! int option; char *db_file = NULL; cmd_t flag = NONE; ! while ((option = getopt(argc, argv, "d:l:w:R:hvVx:")) != -1) ! switch (option) { case 'd': flag = DUMP; |