X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Fconf.c;h=07e408ea4189f836c1ced1b51ff94fd2862110b6;hb=8d8c739fc25e302e0d9c490a15f7eca11bf4654b;hp=54a79cbc775df5fc56b5f3c41bfab8473284e1ee;hpb=05fe12f8b0ff970b8fa04b6c4b68ae20c48c4e09;p=doldaconnect.git diff --git a/daemon/conf.c b/daemon/conf.c index 54a79cb..07e408e 100644 --- a/daemon/conf.c +++ b/daemon/conf.c @@ -1,6 +1,6 @@ /* * Dolda Connect - Modular multiuser Direct Connect-style client - * Copyright (C) 2004 Fredrik Tolf (fredrik@dolda2000.com) + * Copyright (C) 2004 Fredrik Tolf * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,10 +16,11 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + +#include #include #include #include -#include #include #include #include @@ -370,7 +371,7 @@ void storevar(char *key, void *val, size_t len) GDBM_FILE db; datum k, v; - dbname = findfile("dc-vardb", "dc-vardb", NULL, 1); + dbname = findfile("dc-vardb", NULL, 1); if((db = gdbm_open(dbname, 0, GDBM_WRCREAT, 0666, NULL)) == NULL) { flog(LOG_CRIT, "could not open var database for writing, cannot continue: %s", gdbm_strerror(gdbm_errno)); @@ -391,7 +392,7 @@ void *fetchvar(char *key, size_t *lenb) GDBM_FILE db; datum k, v; - if((dbname = findfile("dc-vardb", "dc-vardb", NULL, 0)) == NULL) + if((dbname = findfile("dc-vardb", NULL, 0)) == NULL) return(NULL); if((db = gdbm_open(dbname, 0, GDBM_READER, 0666, NULL)) == NULL) return(NULL);