static char *stylefile = ".surf/style.css";
static char *scriptfile = ".surf/script.js";
static char *cookiefile = ".surf/cookies.txt";
-static char *dldir = ".surf/dl/";
static time_t sessiontime = 0;
#define NOBACKGROUND 0
*p = '/';
}
/* creating file (gives error when apath ends with "/") */
- if((f = g_fopen(apath, "a")))
+ if((f = fopen(apath, "a")))
fclose(f);
return apath;
}
while(clients)
destroyclient(clients);
g_free(cookiefile);
- g_free(dldir);
g_free(scriptfile);
g_free(stylefile);
}
/* dirs and files */
cookiefile = buildpath(cookiefile);
- dldir = buildpath(dldir);
scriptfile = buildpath(scriptfile);
stylefile = buildpath(stylefile);