From: Stephen D. <sd...@us...> - 2005-07-22 06:41:40
|
Update of /cvsroot/naviserver/naviserver/nsd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27286/nsd Modified Files: config.c nsd.h Log Message: * include/ns.h: * nsd/nsd.h: * nsd/config.c: Untabify and reformat. Add CONST declarations. Index: config.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsd/config.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** config.c 10 Jun 2005 17:58:38 -0000 1.2 --- config.c 22 Jul 2005 06:41:24 -0000 1.3 *************** *** 1,7 **** /* ! * The contents of this file are subject to the AOLserver Public License * Version 1.1 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at ! * http://aolserver.com/. * * Software distributed under the License is distributed on an "AS IS" --- 1,7 ---- /* ! * The contents of this file are subject to the Mozilla Public License [...974 lines suppressed...] return set; } --- 624,640 ---- set = NULL; if (!create) { ! hPtr = Tcl_FindHashEntry(&nsconf.sections, section); } else { ! hPtr = Tcl_CreateHashEntry(&nsconf.sections, section, &new); ! if (new) { ! set = Ns_SetCreate(section); ! Tcl_SetHashValue(hPtr, set); ! } } if (hPtr != NULL) { ! set = Tcl_GetHashValue(hPtr); } Ns_DStringFree(&ds); + return set; } Index: nsd.h =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsd/nsd.h,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** nsd.h 12 Jul 2005 16:00:54 -0000 1.24 --- nsd.h 22 Jul 2005 06:41:28 -0000 1.25 *************** *** 932,937 **** extern void NsClosePreBound(void); extern void NsInitServer(char *server, Ns_ServerInitProc *initProc); ! extern char *NsConfigRead(char *file); ! extern void NsConfigEval(char *config, int argc, char **argv, int optind); extern void NsConfUpdate(void); extern void NsEnableDNSCache(int timeout, int maxentries); --- 932,937 ---- extern void NsClosePreBound(void); extern void NsInitServer(char *server, Ns_ServerInitProc *initProc); ! extern char *NsConfigRead(CONST char *file); ! extern void NsConfigEval(CONST char *config, int argc, char **argv, int optind); extern void NsConfUpdate(void); extern void NsEnableDNSCache(int timeout, int maxentries); |