From: Vlad S. <ser...@us...> - 2005-06-12 22:35:01
|
Update of /cvsroot/naviserver/modules/nsaspell In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18236/nsaspell Modified Files: nsaspell.c Log Message: compiler warnings silence Index: nsaspell.c =================================================================== RCS file: /cvsroot/naviserver/modules/nsaspell/nsaspell.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** nsaspell.c 8 Jun 2005 20:03:37 -0000 1.2 --- nsaspell.c 12 Jun 2005 22:34:21 -0000 1.3 *************** *** 80,84 **** AspellCmd(void *context,Tcl_Interp *interp,int objc,Tcl_Obj * CONST objv[]) { ! int i; AspellSession *asp; AspellConfig *config; --- 80,84 ---- AspellCmd(void *context,Tcl_Interp *interp,int objc,Tcl_Obj * CONST objv[]) { ! int i,cmd; AspellSession *asp; AspellConfig *config; *************** *** 105,111 **** cmdCheckText, cmdSuggestText ! } cmd; ! static char *sCmd[] = { "sessions", "create", --- 105,111 ---- cmdCheckText, cmdSuggestText ! }; ! static const char *sCmd[] = { "sessions", "create", *************** *** 410,414 **** AspellStringEnumeration *els; Tcl_Obj *list = Tcl_NewListObj(0,0); ! char *encoding = aspell_config_retrieve(asp->config,"encoding"); aspell_document_checker_reset(asp->checker); --- 410,414 ---- AspellStringEnumeration *els; Tcl_Obj *list = Tcl_NewListObj(0,0); ! char *encoding = (char*)aspell_config_retrieve(asp->config,"encoding"); aspell_document_checker_reset(asp->checker); *************** *** 430,437 **** if(suggest) { Tcl_Obj *list2 = Tcl_NewListObj(0,0); ! wl = aspell_speller_suggest(asp->speller,word,-1); if(!aspell_word_list_empty(wl)) { els = aspell_word_list_elements(wl); ! while((s = aspell_string_enumeration_next(els))) Tcl_ListObjAppendElement(interp,list2,Tcl_NewStringObj(s,-1)); } --- 430,437 ---- if(suggest) { Tcl_Obj *list2 = Tcl_NewListObj(0,0); ! wl = (AspellWordList*)aspell_speller_suggest(asp->speller,word,-1); if(!aspell_word_list_empty(wl)) { els = aspell_word_list_elements(wl); ! while((s = (char*)aspell_string_enumeration_next(els))) Tcl_ListObjAppendElement(interp,list2,Tcl_NewStringObj(s,-1)); } |