From: Vlad S. <ser...@us...> - 2005-08-01 19:39:25
|
Update of /cvsroot/naviserver/modules/nsfortune In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9301 Modified Files: nsfortune.c Log Message: removed old compat functions Index: nsfortune.c =================================================================== RCS file: /cvsroot/naviserver/modules/nsfortune/nsfortune.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** nsfortune.c 12 Jun 2005 22:34:22 -0000 1.3 --- nsfortune.c 1 Aug 2005 19:39:16 -0000 1.4 *************** *** 52,58 **** static int NsFortuneInterpInit(Tcl_Interp *,void *) ; ! DllExport int Ns_ModuleVersion = 1; ! DllExport int Ns_ModuleInit(char *server, char *module) { --- 52,58 ---- static int NsFortuneInterpInit(Tcl_Interp *,void *) ; ! NS_EXPORT int Ns_ModuleVersion = 1; ! NS_EXPORT int Ns_ModuleInit(char *server, char *module) { *************** *** 65,74 **** Ns_ConfigGetBool(path,"text_load",&fortune->text_load); ! if(!(fortune->path = Ns_ConfigGet(path,"path"))) fortune->path = "/usr/share/games/fortunes"; NsFortuneAddPath(fortune,fortune->path); Ns_Log(Notice,"nsfortune: %s: loaded %d epigrams from %d files", fortune->path,fortune->offset_count,fortune->file_count); ! return (Ns_TclInitInterps(server,NsFortuneInterpInit,fortune)); } --- 65,75 ---- Ns_ConfigGetBool(path,"text_load",&fortune->text_load); ! if(!(fortune->path = Ns_ConfigGetValue(path,"path"))) fortune->path = "/usr/share/games/fortunes"; NsFortuneAddPath(fortune,fortune->path); Ns_Log(Notice,"nsfortune: %s: loaded %d epigrams from %d files", fortune->path,fortune->offset_count,fortune->file_count); ! Ns_TclRegisterTrace(server, NsFortuneInterpInit, fortune, NS_TCL_TRACE_CREATE); ! return NS_OK; } |