[hackers] [surf] dl is not needed anymore || Enno Boland (tox)

From: <hg_AT_suckless.org>
Date: Mon, 17 May 2010 21:12:51 +0000 (UTC)

changeset: 205:0231ca90579b
user: Enno Boland (tox) <tox_AT_s01.de>
date: Mon May 17 11:01:37 2010 +0200
files: config.def.h surf.c
description:
dl is not needed anymore

diff -r 4e4941259aa8 -r 0231ca90579b config.def.h
--- a/config.def.h Mon May 17 10:58:08 2010 +0200
+++ b/config.def.h Mon May 17 11:01:37 2010 +0200
@@ -5,7 +5,6 @@
 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
 
diff -r 4e4941259aa8 -r 0231ca90579b surf.c
--- a/surf.c Mon May 17 10:58:08 2010 +0200
+++ b/surf.c Mon May 17 11:01:37 2010 +0200
@@ -128,7 +128,7 @@
                 *p = '/';
         }
         /* creating file (gives error when apath ends with "/") */
- if((f = g_fopen(apath, "a")))
+ if((f = fopen(apath, "a")))
                 fclose(f);
         return apath;
 }
@@ -138,7 +138,6 @@
         while(clients)
                 destroyclient(clients);
         g_free(cookiefile);
- g_free(dldir);
         g_free(scriptfile);
         g_free(stylefile);
 }
@@ -676,7 +675,6 @@
 
         /* dirs and files */
         cookiefile = buildpath(cookiefile);
- dldir = buildpath(dldir);
         scriptfile = buildpath(scriptfile);
         stylefile = buildpath(stylefile);
 
Received on Mon May 17 2010 - 21:12:51 UTC

This archive was generated by hypermail 2.2.0 : Mon May 17 2010 - 21:24:04 UTC