/*
* Dolda Connect - Modular multiuser Direct Connect-style client
- * Copyright (C) 2004 Fredrik Tolf (fredrik@dolda2000.com)
+ * Copyright (C) 2004 Fredrik Tolf <fredrik@dolda2000.com>
*
* 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
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
+#include <stdlib.h>
#include <langinfo.h>
#include <stdio.h>
#include <unistd.h>
-#include <malloc.h>
#include <string.h>
#include <sys/types.h>
#include <errno.h>
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));
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);