along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: conf.c,v 1.9.4.62 2003/07/06 22:11:31 guus Exp $
+ $Id: conf.c,v 1.9.4.64 2003/07/11 16:12:59 guus Exp $
*/
#include "config.h"
char *confbase = NULL; /* directory in which all config files are */
char *netname = NULL; /* name of the vpn network */
-int config_compare(config_t *a, config_t *b)
+static int config_compare(config_t *a, config_t *b)
{
int result;
given, and buf needs to be expanded, the var pointed to by buflen
will be increased.
*/
-char *readline(FILE * fp, char **buf, size_t *buflen)
+static char *readline(FILE * fp, char **buf, size_t *buflen)
{
char *newline = NULL;
char *p;
return x;
}
-int isadir(const char *f)
-{
- struct stat s;
-
- if(stat(f, &s) < 0)
- return 0;
- else
- return S_ISDIR(s.st_mode);
-}
-
int is_safe_path(const char *file)
{
char *p;