dl is not needed anymore
This commit is contained in:
parent
6376a30379
commit
0a6eafe077
|
@ -5,7 +5,6 @@ static char *progress_trust = "#00FF00";
|
||||||
static char *stylefile = ".surf/style.css";
|
static char *stylefile = ".surf/style.css";
|
||||||
static char *scriptfile = ".surf/script.js";
|
static char *scriptfile = ".surf/script.js";
|
||||||
static char *cookiefile = ".surf/cookies.txt";
|
static char *cookiefile = ".surf/cookies.txt";
|
||||||
static char *dldir = ".surf/dl/";
|
|
||||||
static time_t sessiontime = 0;
|
static time_t sessiontime = 0;
|
||||||
#define NOBACKGROUND 0
|
#define NOBACKGROUND 0
|
||||||
|
|
||||||
|
|
4
surf.c
4
surf.c
|
@ -128,7 +128,7 @@ buildpath(const char *path) {
|
||||||
*p = '/';
|
*p = '/';
|
||||||
}
|
}
|
||||||
/* creating file (gives error when apath ends with "/") */
|
/* creating file (gives error when apath ends with "/") */
|
||||||
if((f = g_fopen(apath, "a")))
|
if((f = fopen(apath, "a")))
|
||||||
fclose(f);
|
fclose(f);
|
||||||
return apath;
|
return apath;
|
||||||
}
|
}
|
||||||
|
@ -138,7 +138,6 @@ cleanup(void) {
|
||||||
while(clients)
|
while(clients)
|
||||||
destroyclient(clients);
|
destroyclient(clients);
|
||||||
g_free(cookiefile);
|
g_free(cookiefile);
|
||||||
g_free(dldir);
|
|
||||||
g_free(scriptfile);
|
g_free(scriptfile);
|
||||||
g_free(stylefile);
|
g_free(stylefile);
|
||||||
}
|
}
|
||||||
|
@ -676,7 +675,6 @@ setup(void) {
|
||||||
|
|
||||||
/* dirs and files */
|
/* dirs and files */
|
||||||
cookiefile = buildpath(cookiefile);
|
cookiefile = buildpath(cookiefile);
|
||||||
dldir = buildpath(dldir);
|
|
||||||
scriptfile = buildpath(scriptfile);
|
scriptfile = buildpath(scriptfile);
|
||||||
stylefile = buildpath(stylefile);
|
stylefile = buildpath(stylefile);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue