pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6376a30
)
dl is not needed anymore
author
Enno Boland (tox)
<tox@s01.de>
Mon, 17 May 2010 09:01:37 +0000
(11:01 +0200)
committer
Enno Boland (tox)
<tox@s01.de>
Mon, 17 May 2010 09:01:37 +0000
(11:01 +0200)
config.def.h
patch
|
blob
|
history
surf.c
patch
|
blob
|
history
diff --git
a/config.def.h
b/config.def.h
index
d683cac
..
8caebad
100644
(file)
--- a/
config.def.h
+++ b/
config.def.h
@@
-5,7
+5,6
@@
static char *progress_trust = "#00FF00";
static char *stylefile = ".surf/style.css";
static char *scriptfile = ".surf/script.js";
static char *cookiefile = ".surf/cookies.txt";
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
static time_t sessiontime = 0;
#define NOBACKGROUND 0
diff --git
a/surf.c
b/surf.c
index
7b4d9bb
..
5905c04
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-128,7
+128,7
@@
buildpath(const char *path) {
*p = '/';
}
/* creating file (gives error when apath ends with "/") */
*p = '/';
}
/* creating file (gives error when apath ends with "/") */
- if((f =
g_
fopen(apath, "a")))
+ if((f = fopen(apath, "a")))
fclose(f);
return apath;
}
fclose(f);
return apath;
}
@@
-138,7
+138,6
@@
cleanup(void) {
while(clients)
destroyclient(clients);
g_free(cookiefile);
while(clients)
destroyclient(clients);
g_free(cookiefile);
- g_free(dldir);
g_free(scriptfile);
g_free(stylefile);
}
g_free(scriptfile);
g_free(stylefile);
}
@@
-676,7
+675,6
@@
setup(void) {
/* dirs and files */
cookiefile = buildpath(cookiefile);
/* dirs and files */
cookiefile = buildpath(cookiefile);
- dldir = buildpath(dldir);
scriptfile = buildpath(scriptfile);
stylefile = buildpath(stylefile);
scriptfile = buildpath(scriptfile);
stylefile = buildpath(stylefile);